comparison sat_templates/templates/bulma/list/create.html @ 303:877f01720036

bulma (lists): creation, invitations, item deletion: - add interface to create lists from templates - show list specific icon when available in lists discovery - owned lists can be deleted from lists discovery - lists can now be created from templates - when edition is allowed, a delete button let now delete a list item from single item view - new button to launch invitation manager from list overview
author Goffi <goffi@goffi.org>
date Sat, 20 Feb 2021 13:39:11 +0100
parents 1c330913ff13
children
comparison
equal deleted inserted replaced
302:60979d67eae7 303:877f01720036
1 {% extends 'base/base.html' %} 1 {% extends 'base/base.html' %}
2 {% import 'components/block.html' as block with context %} 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 3
8 {% block body %} 4 {% block body %}
9 {{ icon_defs('clipboard') }} 5 {{ icon_defs(*icons_names) }}
10 <section class="section"> 6 <section class="section">
11 <nav class="level mb-4">
12 <div class="level-left">
13 <div class="level-item">
14 {{ component.action_button(url_list_new) }}
15 </div>
16 </div>
17 </nav>
18 <article class="message has-text-centered"> 7 <article class="message has-text-centered">
19 <div class="message-body"> 8 <div class="message-body">
20 {% trans %} 9 {% trans %}
21 Please select the list to use. 10 Please select the type of list that you want to create
22 {% endtrans %} 11 {% endtrans %}
23 </div> 12 </div>
24 </article> 13 </article>
25 {% if lists_directory is defined %} 14 <div class="columns">
26 <div class="disco_lists"> 15 {% for tpl in lists_templates %}
27 {{block.disco_icon_grid(lists_directory, 'clipboard')}} 16 {{ block.icon_item(tpl.icon, tpl.name, tpl.url) }}
28 </div> 17 {% endfor %}
29 {% endif %} 18 </div>
30 </section>
31 <section class="section">
32 {% call form.form(class="form--single") %}
33 {{ field.text("jid", _("list jid"), required=true)}}
34 {{ field.submit(_("Access")) }}
35 {% endcall %}
36 </section> 19 </section>
37 {% endblock body %} 20 {% endblock body %}