Mercurial > libervia-templates
diff 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 |
line wrap: on
line diff
--- a/sat_templates/templates/bulma/list/item.html Sat Feb 20 13:37:25 2021 +0100 +++ b/sat_templates/templates/bulma/list/item.html Sat Feb 20 13:39:11 2021 +0100 @@ -22,7 +22,7 @@ {% endblock confirm_message %} {% block body %} -{{ icon_defs('pencil') }} +{{ icon_defs('pencil', 'trash-empty') }} <div class="columns mt-4"> <div class="column has-background-white"> <div id="{{ item.widget_value['id'] }}" class="media px-1 py-1"> @@ -39,6 +39,15 @@ {{ item.widget_value['body'] }} </div> + <nav class="level"> + <div class="level-left"> + {% if can_modify %} + <div class="level-item is-size-7 x-is-hoverable-primary action_delete"> + {{ icon('trash-empty', cls='icon is-small') }} + </div> + {% endif %} + </div> + </nav> {% if comments is defined %} {{ blog.show_items(comments['items']|reverse, expanded=true) }} {% endif %} @@ -48,7 +57,7 @@ </div> {% endif %} </div> - {% if url_list_item_edit is defined %} + {% if can_modify %} <div class="media-right"> <a href="{{url_list_item_edit}}"> {{ icon('pencil', cls='icon is-64x64') }}