Fix css and template issues
[bloat] / templates / postform.tmpl
1 <form class="post-form" action="/post" method="POST" enctype="multipart/form-data">
2         {{if .ReplyContext}}
3         <input type="hidden" name="reply_to_id" value="{{.ReplyContext.InReplyToID}}" />
4         <label for="post-content"> Reply to {{.ReplyContext.InReplyToName}} </label>
5         {{else}}
6         <label for="post-content"> New post </label>
7         {{end}}
8         <div class="post-form-content-container">
9                 <textarea id="post-content" name="content" class="post-content" cols="50" rows="5">{{if .ReplyContext}}{{.ReplyContext.ReplyContent}}{{end}}</textarea>
10         </div>
11         <div>
12                 <label for ="post-visilibity"> Visibility </label>
13                 <select id="post-visilibity" name="visibility">
14                         <option value="public" {{if eq .DefaultVisibility "public"}}selected{{end}}>Public</option>
15                         <option value="unlisted" {{if eq .DefaultVisibility "unlisted"}}selected{{end}}>Unlisted</option>
16                         <option value="private" {{if eq .DefaultVisibility "private"}}selected{{end}}>Private</option>
17                         <option value="direct" {{if eq .DefaultVisibility "direct"}}selected{{end}}>Direct</option>
18                 </select>
19         </div>
20         <div>
21                 <label for ="post-file-picker"> Attachments </label>
22                 <input id="post-file-picker" type="file" name="attachments" multiple>
23         </div>
24         <button type="submit"> Post </button>
25 </form>
26