aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorr <r@freesoftwareextremist.com>2019-12-26 11:25:29 +0000
committerr <r@freesoftwareextremist.com>2019-12-26 11:25:29 +0000
commit591360f2a8727e3b1f9e5f28ed3f6d983d6464b8 (patch)
treea65f4b12d04897cb7bdbf6747ba03cca29e3441c /templates
parentac4ff88adb9a2526555757f8d4e65c69cafb3788 (diff)
downloadbloat-591360f2a8727e3b1f9e5f28ed3f6d983d6464b8.tar.gz
bloat-591360f2a8727e3b1f9e5f28ed3f6d983d6464b8.zip
Add post format selection
Diffstat (limited to 'templates')
-rw-r--r--templates/postform.tmpl10
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">