1
0
Fork 0
mirror of https://github.com/Eggbertx/gochan.git synced 2025-08-19 12:36:23 -07:00
gochan/templates/post_edit.html
Eggbertx 424f419199 Store configuration-dependent variables in a JavaScript file
As opposed to every single HTML file
2019-11-29 15:08:18 -08:00

20 lines
No EOL
1.1 KiB
HTML

{{template "page_header.html" .}}
<header>
<h1>Edit post</h1><br />
<div class="subtitle"><a href="{{.referrer}}">Return</a></div>
</header>
<form action="/util" method="POST" id="edit-form">
<input name="postid" type="hidden" value="{{.post.ID}}" />
<input name="boardid" type="hidden" value="{{.post.BoardID}}" />
<input name="parentid" type="hidden" value="{{.post.ParentID}}" />
<input name="password" type="hidden" value="{{.post.Password}}" />
<input name="doedit" type="hidden" value="1" />
<table id="postbox-static" align="center">
<tr><th class="postblock">Name</th><td>{{stringAppend .post.Name "#" .post.Tripcode}}</td></tr>
<tr><th class="postblock">Email</th><td>{{.post.Email}}</td></tr>
<tr><th class="postblock">Subject</th><td><input type="text" name="editsubject" maxlength="100" size="28" autocomplete="off" value="{{.post.Subject}}"/><input type="submit" value="{{with .op}}Reply{{else}}Post{{end}}"/></td></tr>
<tr><th class="postblock">Message</th><td><textarea rows="4" cols="48" name="editmsg" id="editmsg">{{.post.MessageText}}</textarea></td></tr>
</table>
</form><br />
{{template "page_footer.html" .}}