gosora/templates/edit-topic.html
Azareal 409719d10e Added support for screen readers.
Refactored the setting system to make it thread-safe.
Planned out the task system.
Fixed the closed topic status header.
2017-08-20 10:39:02 +01:00

30 lines
1.1 KiB
HTML

{{template "header.html" . }}
<main>
<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>
</main>
{{template "footer.html" . }}