| 1 | {% extends 'base/base.html' %} |
| 2 | {% import 'components/block.html' as block with context %} |
| 3 | {% import 'components/images.html' as images with context %} |
| 4 | {% import 'components/avatar.html' as avatar with context %} |
| 5 | {% import 'input/form.html' as form with context %} |
| 6 | {% import 'input/field.html' as field with context %} |
| 7 | |
| 8 | {% block body %} |
| 9 | {{ icon_defs('clipboard') }} |
| 10 | {% if icons_names is defined %} |
| 11 | {{ icon_defs(*icons_names) }} |
| 12 | {% endif %} |
| 13 | <section class="section"> |
| 14 | <nav class="level mb-4"> |
| 15 | <div class="level-left"> |
| 16 | <div class="level-item"> |
| 17 | {{ component.action_button(url_list_create, label=_("create a list")) }} |
| 18 | </div> |
| 19 | </div> |
| 20 | </nav> |
| 21 | <article class="message has-text-centered"> |
| 22 | <div class="message-body"> |
| 23 | {% trans %} |
| 24 | Please select the list to use. |
| 25 | {% endtrans %} |
| 26 | </div> |
| 27 | </article> |
| 28 | {% if lists_directory is defined %} |
| 29 | <div class="disco_lists"> |
| 30 | |
| 31 | <div class="columns is-multiline is-mobile"> |
| 32 | {% for list_data in lists_directory %} |
| 33 | {{ block.icon_item( |
| 34 | list_data.icon_name or "clipboard", |
| 35 | list_data.name, |
| 36 | list_data.url, |
| 37 | delete_icon=not list_data.from_config, |
| 38 | data=list_data) |
| 39 | }} |
| 40 | {% endfor %} |
| 41 | </div> |
| 42 | </div> |
| 43 | {% endif %} |
| 44 | </section> |
| 45 | <section class="section"> |
| 46 | {% call form.form(class="form--single") %} |
| 47 | {{ field.text("jid", _("list jid"), required=true)}} |
| 48 | {{ field.submit(_("Access")) }} |
| 49 | {% endcall %} |
| 50 | </section> |
| 51 | {% endblock body %} |