comparison sat_templates/templates/bulma/list/view_generic.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
children 3db3509cbad1
comparison
equal deleted inserted replaced
308:3054387cac3b 309:27511c821481
1 <div id="list" class="container has-background-white px-1 py-1">
2 {{ xmlui.generate_list(
3 list_items,
4 (
5 ('title', _('Title')),
6 ('labels', _('Labels')),
7 ('id', _('Id')),
8 ('author', _('Author')),
9 ),
10 {
11 'id': '\n#{value}',
12 'author': _('by {value}'),
13 },
14 item_class_fields=['status', 'priority', 'severity'],
15 field_class_map={
16 'title': 'has-text-weight-bold',
17 'labels': 'tag is-rounded x-is-hoverable',
18 'id': 'has-text-grey-light is-size-7 has-whitespace-pre-wrap',
19 'author': 'is-size-7'
20 },
21 on_click=on_list_item_click)
22 }}
23 </div>