-
Notifications
You must be signed in to change notification settings - Fork 0
/
edit.html
52 lines (52 loc) · 2.25 KB
/
edit.html
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
46
47
48
49
50
51
52
<head>
<script type="text/javascript">
function stopme(s, e){
if (!confirm("Are you sure you want to delete this page?")) return;
window.location.href = "/delete/{{.Title}}";
}
</script>
<h1>Editing {{.Title}}</h1>
<button type="button" onclick="javascript: window.history.back();">Cancel</button>
</br></br>
<button type="button" onclick="javascript: try{stopme();} catch(e) {alert(e);} ">Delete</button>
</br></br>
<form action="/upload/{{.Title}}/1" method="POST" enctype="multipart/form-data">
<input type="file" name="uploadfile1" />
<input type="submit" value="Upload Image1" />
</form>
<form action="/upload/{{.Title}}/2" method="POST" enctype="multipart/form-data">
<input type="file" name="uploadfile2" />
<input type="submit" value="Upload Image2" />
</form>
<form action="/upload/{{.Title}}/3" method="POST" enctype="multipart/form-data">
<input type="file" name="uploadfile3" />
<input type="submit" value="Upload Image3" />
</form>
<form action="/upload/{{.Title}}/4" method="POST" enctype="multipart/form-data">
<input type="file" name="uploadfile4" />
<input type="submit" value="Upload Image4" />
</form>
<form action="/upload/{{.Title}}/5" method="POST" enctype="multipart/form-data">
<input type="file" name="uploadfile5" />
<input type="submit" value="Upload Image5" />
</form>
<form action="/upload/{{.Title}}/6" method="POST" enctype="multipart/form-data">
<input type="file" name="uploadfile6" />
<input type="submit" value="Upload Image6" />
</form>
<form action="/upload/{{.Title}}/7" method="POST" enctype="multipart/form-data">
<input type="file" name="uploadfile7" />
<input type="submit" value="Upload Image7" />
</form>
<form action="/upload/{{.Title}}/8" method="POST" enctype="multipart/form-data">
<input type="file" name="uploadfile8" />
<input type="submit" value="Upload Image8" />
</form>
<form action="/upload/{{.Title}}/9" method="POST" enctype="multipart/form-data">
<input type="file" name="uploadfile9" />
<input type="submit" value="Upload Image9" />
</form>
<form action="/save/{{.Title}}" method="POST">
<div><textarea name="body" rows="20" cols="80">{{printf "%s" .Body}}</textarea></div>
<div><input type="submit" value="Save"></div>
</form>