mirror of
https://gitea.phreedom.club/localhost_frssoft/bloat.git
synced 2025-05-02 10:04:22 +00:00
Add post format selection
This commit is contained in:
parent
ac4ff88adb
commit
591360f2a8
11 changed files with 66 additions and 15 deletions
|
@ -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">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue