diff options
Diffstat (limited to 'templates')
-rw-r--r-- | templates/postform.tmpl | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/templates/postform.tmpl b/templates/postform.tmpl index 54024f0..0e104b4 100644 --- a/templates/postform.tmpl +++ b/templates/postform.tmpl @@ -12,6 +12,14 @@ <textarea id="post-content" name="content" class="post-content" cols="50" rows="5">{{if .ReplyContext}}{{.ReplyContext.ReplyContent}}{{end}}</textarea> </div> <div> + {{if gt (len .Formats) 0}} + <span class="post-form-field"> + <label for="post-format"> Format </label> + <select id="post-format" name="format"> + {{range .Formats}} <option value="{{.Type}}">{{.Name}}</option> {{end}} + </select> + </span> + {{end}} <span class="post-form-field"> <label for="post-visilibity"> Visibility </label> <select id="post-visilibity" name="visibility"> @@ -25,8 +33,6 @@ <input type="checkbox" id="nsfw-checkbox" name="is_nsfw" value="on"> <label for="nsfw-checkbox"> Is NSFW </label> </span> - <span class="post-form-field"> - </span> </div> <div> <span class="post-form-field"> |