~jadedctrl/jam-xwx-moe
~jadedctrl/jam-xwx-moe/bloat-fe/instance/ŝablonoj/lists.tmpl
~jadedctrl/jam-xwx-moe/bloat-fe/instance/ŝablonoj/lists.tmpl
0 | {{with .Data}} |
1 | {{template "header.tmpl" (WithContext .CommonData $.Ctx)}} |
2 | <div class="page-title"> Listoj </div> |
3 |
|
4 | {{range .Lists}} |
5 | <div> |
6 | <a href="/timeline/list?list={{.ID}}"> {{.Title}} historio </a> |
7 | - |
8 | <form class="d-inline" action="/list/{{.ID}}" method="GET"> |
9 | <button type="submit" class="btn-link"> redakti </button> |
10 | </form> |
11 | - |
12 | <form class="d-inline" action="/list/{{.ID}}/remove" method="POST"> |
13 | <input type="hidden" name="csrf_token" value="{{$.Ctx.CSRFToken}}"> |
14 | <input type="hidden" name="referrer" value="{{$.Ctx.Referrer}}"> |
15 | <button type="submit" class="btn-link"> forigi </button> |
16 | </form> |
17 | </div> |
18 | {{else}} |
19 | <div class="no-data-found">Neniu datumo trovita</div> |
20 | {{end}} |
21 |
|
22 | <div class="page-title"> Krei liston </div> |
23 | <form action="/list" method="POST"> |
24 | <input type="hidden" name="csrf_token" value="{{$.Ctx.CSRFToken}}"> |
25 | <input type="hidden" name="referrer" value="{{$.Ctx.Referrer}}"> |
26 | <span class="settings-form-field"> |
27 | <label for="title"> Nomo </label> |
28 | <input id="title" name="title" required> |
29 | </span> |
30 | <button type="submit"> Krei </button> |
31 | </form> |
32 |
|
33 | {{template "footer.tmpl"}} |
34 | {{end}} |