Switch to fork-awesome font
[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         <a class="post-form-emoji-link" href="/emojis" target="_blank">
9                 <i class="fa fa-smile-o" title="emoji reference"></i>
10         </a>
11         <div class="post-form-content-container">
12                 <textarea id="post-content" name="content" class="post-content" cols="50" rows="5">{{if .ReplyContext}}{{.ReplyContext.ReplyContent}}{{end}}</textarea>
13         </div>
14         <div>
15                 <span class="post-form-field">
16                         <label for="post-visilibity"> Visibility </label>
17                         <select id="post-visilibity" name="visibility">
18                                 <option value="public" {{if eq .DefaultVisibility "public"}}selected{{end}}>Public</option>
19                                 <option value="unlisted" {{if eq .DefaultVisibility "unlisted"}}selected{{end}}>Unlisted</option>
20                                 <option value="private" {{if eq .DefaultVisibility "private"}}selected{{end}}>Private</option>
21                                 <option value="direct" {{if eq .DefaultVisibility "direct"}}selected{{end}}>Direct</option>
22                         </select>
23                 </span>
24                 <span class="post-form-field">
25                         <input type="checkbox" id="nsfw-checkbox" name="is_nsfw" value="on">
26                         <label for="nsfw-checkbox"> Is NSFW </label>
27                 </span>
28                 <span class="post-form-field">
29                 </span>
30         </div>
31         <div>
32                 <span class="post-form-field">
33                         <label for ="post-file-picker"> Attachments </label>
34                         <input id="post-file-picker" type="file" name="attachments" multiple>
35                 </span>
36         </div>
37         <button type="submit"> Post </button>
38 </form>
39