Mercurial > libervia-templates
comparison sat_templates/templates/bulma/list/discover.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 | 3054387cac3b |
comparison
equal
deleted
inserted
replaced
302:60979d67eae7 | 303:877f01720036 |
---|---|
5 {% import 'input/form.html' as form with context %} | 5 {% import 'input/form.html' as form with context %} |
6 {% import 'input/field.html' as field with context %} | 6 {% import 'input/field.html' as field with context %} |
7 | 7 |
8 {% block body %} | 8 {% block body %} |
9 {{ icon_defs('clipboard') }} | 9 {{ icon_defs('clipboard') }} |
10 {% if icons_names is defined %} | |
11 {{ icon_defs(*icons_names) }} | |
12 {% endif %} | |
10 <section class="section"> | 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> | |
11 <article class="message has-text-centered"> | 21 <article class="message has-text-centered"> |
12 <div class="message-body"> | 22 <div class="message-body"> |
13 {% trans %} | 23 {% trans %} |
14 Please select the list to use. | 24 Please select the list to use. |
15 {% endtrans %} | 25 {% endtrans %} |
16 </div> | 26 </div> |
17 </article> | 27 </article> |
18 {% if lists_directory is defined %} | 28 {% if lists_directory is defined %} |
19 <div class="disco_lists"> | 29 <div class="disco_lists"> |
20 {{block.disco_icon_grid(lists_directory, 'clipboard')}} | 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=list_data.creator, | |
38 data=list_data) | |
39 }} | |
40 {% endfor %} | |
41 </div> | |
21 </div> | 42 </div> |
22 {% endif %} | 43 {% endif %} |
23 </section> | 44 </section> |
24 <section class="section"> | 45 <section class="section"> |
25 {% call form.form(class="form--single") %} | 46 {% call form.form(class="form--single") %} |