~jadedctrl/jam-xwx-moe

~jadedctrl/jam-xwx-moe/bloat-fe/instance/ŝablonoj/postform.tmpl
 ..
0 {{with .Data}}
1 <form class="post-form" action="/post" method="POST" enctype="multipart/form-data" target="_self">
2 <input type="hidden" name="csrf_token" value="{{$.Ctx.CSRFToken}}">
3 <input type="hidden" name="referrer" value="{{$.Ctx.Referrer}}">
4 {{if .ReplyContext}}
5 <input type="hidden" name="reply_to_id" value="{{.ReplyContext.InReplyToID}}" />
6 <input type="hidden" name="quickreply" value="{{.ReplyContext.QuickReply}}" />
7 <label for="post-content" class="post-form-title"> Respondi al @{{.ReplyContext.InReplyToName}} </label>
8 {{else}}
9 <label for="post-content" class="post-form-title"> Nova afiŝo </label>
10 {{end}}
11 <a class="post-form-emoji-link" href="/emojis" target="_blank" title="Bildosignoj (L)" accesskey="L">
12 bildosignoj
13 </a>
14 <div class="post-form-content-container">
15 <textarea id="post-content" name="content" class="post-content" cols="34" rows="5" accesskey="E" title="Redakti afiŝon (E)">{{if .ReplyContext}}{{.ReplyContext.ReplyContent}}{{end}}</textarea>
16 </div>
17 <div>
18 {{if .Formats}}
19 <span class="post-form-field">
20 {{$defFormat := .DefaultFormat}}
21 <select id="post-format" name="format" accesskey="F" title="Formo (F)">
22 {{range .Formats}}
23 <option value="{{.Type}}" {{if eq $defFormat .Type}}selected{{end}}>{{.Name}}</option>
24 {{end}}
25 </select>
26 </span>
27 {{end}}
28 <span class="post-form-field">
29 <select id="post-visilibity" name="visibility" {{if .ReplyContext}}{{if .ReplyContext.ForceVisibility}}disabled{{end}}{{end}} accesskey="S" title="Celo (S)">
30 <option value="public" {{if eq .DefaultVisibility "public"}}selected{{end}}>Publika</option>
31 <option value="unlisted" {{if eq .DefaultVisibility "unlisted"}}selected{{end}}>Nepublika</option>
32 <option value="private" {{if eq .DefaultVisibility "private"}}selected{{end}}>Privata</option>
33 <option value="direct" {{if eq .DefaultVisibility "direct"}}selected{{end}}>Rekta</option>
34 </select>
35 </span>
36 <span class="post-form-field">
37 <input type="checkbox" id="nsfw-checkbox" name="is_nsfw" value="true" accesskey="N" title="Konsterna (N)">
38 <label for="nsfw-checkbox"> Konsterna </label>
39 </span>
40 </div>
41 <div>
42 <span class="post-form-field">
43 <input id="post-file-picker" type="file" name="attachments" multiple accesskey="A" title="Kunsendaĵoj (A)">
44 </span>
45 </div>
46 <button type="submit" accesskey="P" title="Afiŝi (P)"> Afiŝi </button>
47 <button type="reset" title="Reset"> Nuligi </button>
48 </form>
49 {{end}}
50