parent
df875381d4
commit
39c57a6b65
@ -0,0 +1,7 @@
|
||||
package model
|
||||
|
||||
type ReplyContext struct {
|
||||
InReplyToID string
|
||||
InReplyToName string
|
||||
ReplyContent string
|
||||
}
|
@ -0,0 +1,16 @@
|
||||
<form class="post-form" action="/post" method="POST" enctype="multipart/form-data">
|
||||
{{if .}}
|
||||
<input type="hidden" name="reply_to_id" value="{{.InReplyToID}}" />
|
||||
<label for="post-content"> Reply to {{.InReplyToName}} </label>
|
||||
{{else}}
|
||||
<label for="post-content"> New post </label>
|
||||
{{end}}
|
||||
<div class="post-form-content-container">
|
||||
<textarea id="post-content" name="content" class="post-content" cols="50" rows="5">{{if .}}{{.ReplyContent}}{{end}}</textarea>
|
||||
</div>
|
||||
<div>
|
||||
Attachments <input id="post-file-picker" type="file" name="attachments" multiple>
|
||||
</div>
|
||||
<button type="submit"> Post </button>
|
||||
</form>
|
||||
|
Loading…
Reference in new issue