~jadedctrl/jam-xwx-moe

~jadedctrl/jam-xwx-moe/bloat-fe/instance/ŝablonoj/filters.tmpl
 ..
0 {{with .Data}}
1 {{template "header.tmpl" (WithContext .CommonData $.Ctx)}}
2 <div class="page-title"> Filtriloj </div>
3
4 {{if .Filters}}
5 <table class="filters">
6 {{range .Filters}}
7 <tr>
8 <td> {{.Phrase}}{{if not .WholeWord}}*{{end}} </td>
9 <td>
10 <form action="/unfilter/{{.ID}}" method="POST">
11 <input type="hidden" name="csrf_token" value="{{$.Ctx.CSRFToken}}">
12 <input type="hidden" name="referrer" value="{{$.Ctx.Referrer}}">
13 <button type="submit"> Forigi </button>
14 </form>
15 </td>
16 </tr>
17 {{end}}
18 </table>
19 {{else}}
20 <div class="filters"> Neniu filtrilo agordita </div>
21 {{end}}
22
23 <div class="page-title"> Krei filtrilon </div>
24 <form action="/filter" method="POST">
25 <input type="hidden" name="csrf_token" value="{{$.Ctx.CSRFToken}}">
26 <input type="hidden" name="referrer" value="{{$.Ctx.Referrer}}">
27 <span class="settings-form-field">
28 <label for="phrase"> Vorto(j) </label>
29 <input id="phrase" name="phrase" required>
30 </span>
31 <span class="settings-form-field">
32 <input id="whole-word" name="whole_word" type="checkbox" value="true" checked>
33 <label for="whole-word"> Tutmonde </label>
34 </span>
35 <button type="submit"> Krei </button>
36 </form>
37
38 {{template "footer.tmpl"}}
39 {{end}}