comparison 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
comparison
equal deleted inserted replaced
308:3054387cac3b 309:27511c821481
29 <div class="level-item"> 29 <div class="level-item">
30 {{ textbox.search() }} 30 {{ textbox.search() }}
31 </div> 31 </div>
32 </div> 32 </div>
33 </nav> 33 </nav>
34 <div id="list" class="container has-background-white px-1 py-1"> 34 {% if list_type == "todo" %}
35 {{ xmlui.generate_list( 35 {% include "list/view_todo.html" %}
36 list_items, 36 {% elif list_type == "grocery" %}
37 ( 37 {% include "list/view_grocery.html" %}
38 ('title', _('Title')), 38 {% else %}
39 ('labels', _('Labels')), 39 {% include "list/view_generic.html" %}
40 ('id', _('Id')), 40 {% endif %}
41 ('author', _('Author')),
42 ),
43 {
44 'id': '\n#{value}',
45 'author': _('by {value}'),
46 },
47 item_class_fields=['status', 'priority', 'severity'],
48 field_class_map={
49 'title': 'has-text-weight-bold',
50 'labels': 'tag is-rounded x-is-hoverable',
51 'id': 'has-text-grey-light is-size-7 has-whitespace-pre-wrap',
52 'author': 'is-size-7'
53 },
54 on_click=on_list_item_click)
55 }}
56 </div>
57 </section> 41 </section>
58 {{ navigation.prev_next(_("previous page"), _("next page")) }} 42 {{ navigation.prev_next(_("previous page"), _("next page")) }}
59 {% endblock body %} 43 {% endblock body %}