gosora/templates/edit-topic.html
Azareal 689b1a804b Static files are now served from memory. This feature's a little experimental, so it will need a lot of testing i.i
Added an executable file. Only works on Windows, if it doesn't work, then try building it for yourself with build.bat or go build
Tweaked run.bat to make it more firewall friendly. It now generates an executable.
Moved the files around to make it more organised.
Added build.bat which you can use to build the program for you and install the libraries the software depends on.
2016-12-05 07:21:17 +00:00

29 lines
1.0 KiB
HTML

{{template "header.html" . }}
<div class="rowblock">
<form action='/topic/edit/{{index .Something "ID"}}/submit/' method="post">
<div class="rowitem">
<input name="topic_name" value='{{index .Something "content"}}' type="text" />
<select name="topic_status" class='show_on_edit'>
{{range .StatusList}}<option>{{.}}</option>{{end}}
</select>
<button name="topic-button" class="formbutton">Update</button>
</div>
</form>
</div>
<div class="rowblock">
{{range $index, $element := .ItemList}}<div class="rowitem passive">
{{$element.Content}}
</div>{{end}}
</div>
<div class="rowblock">
<form action="/reply/create/" method="post">
<input name="tid" value='{{index .Something "tid"}}' type="hidden" />
<div class="formrow">
<div class="formitem"><textarea name="reply-content" placeholder="Insert reply here"></textarea></div>
</div>
<div class="formrow">
<div class="formitem"><button name="reply-button" class="formbutton">Create Reply</div></div>
</div>
</form>
</div>
{{template "footer.html" . }}