2016-12-02 07:38:54 +00:00
|
|
|
{{template "header.html" . }}
|
|
|
|
<div class="rowblock">
|
2016-12-03 04:50:35 +00:00
|
|
|
<form action='/topic/edit/submit/{{.Something.ID}}' method="post">
|
2016-12-02 07:38:54 +00:00
|
|
|
<div class="rowitem">
|
2016-12-03 04:50:35 +00:00
|
|
|
<a class='topic_name hide_on_edit'>{{.Something.Title}}</a>
|
|
|
|
<span class='topic_status topic_status_e topic_status_{{.Something.Status}} hide_on_edit'>{{.Something.Status}}</span>
|
|
|
|
<a href='/topic/edit/{{.Something.ID}}' class="topic_status hide_on_edit open_edit">Edit</a>
|
|
|
|
<a href='/topic/delete/{{.Something.ID}}' class="topic_status">Delete</a>
|
2016-12-02 07:38:54 +00:00
|
|
|
|
2016-12-03 04:50:35 +00:00
|
|
|
<input class='show_on_edit topic_name_input' name="topic_name" value='{{.Something.Title}}' type="text" />
|
2016-12-02 07:38:54 +00:00
|
|
|
<select name="topic_status" class='show_on_edit topic_status_input'>
|
|
|
|
<option>closed</option>
|
|
|
|
<option>open</option>
|
|
|
|
</select>
|
|
|
|
<button name="topic-button" class="formbutton show_on_edit submit_edit">Update</button>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
<div class="rowblock">
|
2016-12-03 04:50:35 +00:00
|
|
|
<div class="rowitem passive editable_parent" style="border-bottom: none;{{ if .Something.Avatar }}background-image: url({{ .Something.Avatar }});background-position: left;background-repeat: no-repeat;background-size: 128px;padding-left: 136px;{{end}}">
|
|
|
|
<span class="hide_on_edit topic_content">{{.Something.Content}}</span>
|
|
|
|
<textarea name="topic_content" class="show_on_edit topic_content_input">{{.Something.Content}}</textarea>
|
2016-12-02 07:38:54 +00:00
|
|
|
<br /><br />
|
2016-12-03 04:50:35 +00:00
|
|
|
<a class="topic_status" style="padding-left: 0px;margin-left: 0px;">{{.Something.CreatedByName}}<a/>
|
2016-12-02 07:38:54 +00:00
|
|
|
</div>
|
|
|
|
</div><br />
|
2016-12-02 15:03:31 +00:00
|
|
|
<div class="rowblock" style="overflow: hidden;">
|
|
|
|
{{range $index, $element := .ItemList}}
|
2016-12-03 04:50:35 +00:00
|
|
|
<div class="rowitem passive deletable_block editable_parent" style="{{ if $element.Avatar }}background-image: url({{ $element.Avatar }});background-position: left;background-repeat: no-repeat;background-size: 128px;padding-left: 136px;{{end}}">
|
|
|
|
<span class="editable_block">{{$element.ContentHtml}}</span>
|
2016-12-02 07:38:54 +00:00
|
|
|
<br /><br />
|
|
|
|
<a class="topic_status" style="padding-left: 0px;margin-left: 0px;">{{$element.CreatedByName}}<a/>
|
2016-12-03 04:50:35 +00:00
|
|
|
<a href="/reply/edit/submit/{{$element.ID}}"><button class="topic_status edit_item">Edit</button></a>
|
|
|
|
<a href="/reply/delete/submit/{{$element.ID}}"><button class="topic_status delete_item">Delete</button></a>
|
2016-12-02 15:03:31 +00:00
|
|
|
</div>{{ end }}
|
2016-12-02 07:38:54 +00:00
|
|
|
</div>
|
|
|
|
<div class="rowblock">
|
|
|
|
<form action="/reply/create/" method="post">
|
2016-12-03 04:50:35 +00:00
|
|
|
<input name="tid" value='{{.Something.ID}}' type="hidden" />
|
2016-12-02 07:38:54 +00:00
|
|
|
<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" . }}
|