Mercurial > libervia-templates
diff sat_templates/templates/bulma/list/overview.html @ 309:27511c821481
bulma (list/overview): use specialised view for `grocery` list
author | Goffi <goffi@goffi.org> |
---|---|
date | Sat, 27 Feb 2021 20:54:13 +0100 |
parents | 877f01720036 |
children |
line wrap: on
line diff
--- a/sat_templates/templates/bulma/list/overview.html Sat Feb 27 20:52:19 2021 +0100 +++ b/sat_templates/templates/bulma/list/overview.html Sat Feb 27 20:54:13 2021 +0100 @@ -31,29 +31,13 @@ </div> </div> </nav> - <div id="list" class="container has-background-white px-1 py-1"> - {{ xmlui.generate_list( - list_items, - ( - ('title', _('Title')), - ('labels', _('Labels')), - ('id', _('Id')), - ('author', _('Author')), - ), - { - 'id': '\n#{value}', - 'author': _('by {value}'), - }, - item_class_fields=['status', 'priority', 'severity'], - field_class_map={ - 'title': 'has-text-weight-bold', - 'labels': 'tag is-rounded x-is-hoverable', - 'id': 'has-text-grey-light is-size-7 has-whitespace-pre-wrap', - 'author': 'is-size-7' - }, - on_click=on_list_item_click) - }} - </div> + {% if list_type == "todo" %} + {% include "list/view_todo.html" %} + {% elif list_type == "grocery" %} + {% include "list/view_grocery.html" %} + {% else %} + {% include "list/view_generic.html" %} + {% endif %} </section> {{ navigation.prev_next(_("previous page"), _("next page")) }} {% endblock body %}