comparison sat_templates/templates/bulma/list/item.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 0e388a8288ae
comparison
equal deleted inserted replaced
302:60979d67eae7 303:877f01720036
20 {% block confirm_message %} 20 {% block confirm_message %}
21 {% trans %}Your comment has been sent{% endtrans %} 21 {% trans %}Your comment has been sent{% endtrans %}
22 {% endblock confirm_message %} 22 {% endblock confirm_message %}
23 23
24 {% block body %} 24 {% block body %}
25 {{ icon_defs('pencil') }} 25 {{ icon_defs('pencil', 'trash-empty') }}
26 <div class="columns mt-4"> 26 <div class="columns mt-4">
27 <div class="column has-background-white"> 27 <div class="column has-background-white">
28 <div id="{{ item.widget_value['id'] }}" class="media px-1 py-1"> 28 <div id="{{ item.widget_value['id'] }}" class="media px-1 py-1">
29 {% if identities is defined %} 29 {% if identities is defined %}
30 {% if avatar is defined %} 30 {% if avatar is defined %}
37 <div class="content"> 37 <div class="content">
38 <h4 class="title is-4">{{item.widget_value['title']}}</h1> 38 <h4 class="title is-4">{{item.widget_value['title']}}</h1>
39 {{ item.widget_value['body'] }} 39 {{ item.widget_value['body'] }}
40 40
41 </div> 41 </div>
42 <nav class="level">
43 <div class="level-left">
44 {% if can_modify %}
45 <div class="level-item is-size-7 x-is-hoverable-primary action_delete">
46 {{ icon('trash-empty', cls='icon is-small') }}
47 </div>
48 {% endif %}
49 </div>
50 </nav>
42 {% if comments is defined %} 51 {% if comments is defined %}
43 {{ blog.show_items(comments['items']|reverse, expanded=true) }} 52 {{ blog.show_items(comments['items']|reverse, expanded=true) }}
44 {% endif %} 53 {% endif %}
45 {% if comments_node is defined %} 54 {% if comments_node is defined %}
46 <div class="comment_post"> 55 <div class="comment_post">
47 {{- textbox.comment_or_login(service=comments_service, node=comments_node) -}} 56 {{- textbox.comment_or_login(service=comments_service, node=comments_node) -}}
48 </div> 57 </div>
49 {% endif %} 58 {% endif %}
50 </div> 59 </div>
51 {% if url_list_item_edit is defined %} 60 {% if can_modify %}
52 <div class="media-right"> 61 <div class="media-right">
53 <a href="{{url_list_item_edit}}"> 62 <a href="{{url_list_item_edit}}">
54 {{ icon('pencil', cls='icon is-64x64') }} 63 {{ icon('pencil', cls='icon is-64x64') }}
55 </a> 64 </a>
56 </div> 65 </div>