~jadedctrl/jam-xwx-moe
~jadedctrl/jam-xwx-moe/bloat-fe/instance/ŝablonoj/list.tmpl
~jadedctrl/jam-xwx-moe/bloat-fe/instance/ŝablonoj/list.tmpl
0 | {{with .Data}} |
1 | {{template "header.tmpl" (WithContext .CommonData $.Ctx)}} |
2 | <div class="page-title"> Listo {{.List.Title}} </div> |
3 |
|
4 | <form action="/list/{{.List.ID}}/rename" method="POST"> |
5 | <input type="hidden" name="csrf_token" value="{{$.Ctx.CSRFToken}}"> |
6 | <input type="hidden" name="referrer" value="{{$.Ctx.Referrer}}"> |
7 | <input id="title" name="title" value="{{.List.Title}}"> |
8 | <button type="submit"> Renomi </button> |
9 | </form> |
10 |
|
11 | <div class="page-title"> Uzantoj </div> |
12 | {{if .Accounts}} |
13 | <table> |
14 | {{range .Accounts}} |
15 | <tr> |
16 | <td class="p-0"> {{template "userlistitem.tmpl" (WithContext . $.Ctx)}} </td> |
17 | <td class="p-0"> |
18 | <form class="user-list-action" action="/list/{{$.Data.List.ID}}/removeuser?uid={{.ID}}" method="POST"> |
19 | <input type="hidden" name="csrf_token" value="{{$.Ctx.CSRFToken}}"> |
20 | <input type="hidden" name="referrer" value="{{$.Ctx.Referrer}}"> |
21 | <button type="submit"> Remove </button> |
22 | </form> |
23 | </td> |
24 | </tr> |
25 | {{end}} |
26 | </table> |
27 | {{else}} |
28 | <div class="no-data-found">Neniu datumo trovita</div> |
29 | {{end}} |
30 |
|
31 | <div class="page-title"> Aldoni uzanton </div> |
32 | <form class="search-form" action="/list/{{.List.ID}}" method="GET"> |
33 | <span class="post-form-field"> |
34 | <label for="query"> Uzanta serĉmendo </label> |
35 | <input id="query" name="q" value="{{.Q}}"> |
36 | </span> |
37 | <button type="submit"> Serĉi </button> |
38 | </form> |
39 |
|
40 | {{if .Q}} |
41 | {{if .SearchAccounts}} |
42 | <table> |
43 | {{range .SearchAccounts}} |
44 | <tr> |
45 | <td> {{template "userlistitem.tmpl" (WithContext . $.Ctx)}} </td> |
46 | <td> |
47 | <form class="user-list-action" action="/list/{{$.Data.List.ID}}/adduser?uid={{.ID}}" method="POST"> |
48 | <input type="hidden" name="csrf_token" value="{{$.Ctx.CSRFToken}}"> |
49 | <input type="hidden" name="referrer" value="{{$.Ctx.Referrer}}"> |
50 | <button type="submit"> Aldoni </button> |
51 | </form> |
52 | </td> |
53 | </tr> |
54 | {{end}} |
55 | </table> |
56 | {{else}} |
57 | <div class="no-data-found">Neniu datumo trovita</div> |
58 | {{end}} |
59 | {{end}} |
60 |
|
61 | {{template "footer.tmpl"}} |
62 | {{end}} |