blob: 8a7885c6cdf6bf2d9de9d463f87462399418280b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta property="og:title" content="Editing '{{.Title}}'"/>
<meta property="og:image" content="/static/favicon.ico" />
<link rel="stylesheet" href="/static/main.css">
<title>Editing "{{.Title}}"</title>
<style>
textarea[name="text"] {
color: #4c4c4c;
border: dashed 1px black;
font-size: 1.25em;
font-family: monospace;
width: 93%;
margin-left: 3%;
margin-right: 4%;
}
input[name="title"] {
color: #4c4c4c;
border: dashed 1px black;
font-weight: bold;
font-size: 2em;
display: inline;
width: 90%;
}
</style>
</head>
<body>
<h3>Editing "{{.Title}}"</h3>
<hr>
<div class="idea">
<form action="/idea/edit/" method="post">
<input name="title" type="text" value="{{.Title}}"><br>
<textarea name="text" rows=4 required>{{.Text}}</textarea>
<p class="creation">by <span class="author">{{.Author}}</span> on <span class="date">{{.CreatedAt}}</span></p>
<input type="submit" value="confirm">
</form>
<form action="/ideas/" method="get">
<input type="submit" value="cancel">
</form>
</div>
</body>
</html>
|