comparison sat_templates/templates/bulma/list/overview.html @ 298:1c330913ff13

bulma (tickets): renamed "tickets" to "lists"
author Goffi <goffi@goffi.org>
date Thu, 28 Jan 2021 18:42:59 +0100
parents sat_templates/templates/bulma/ticket/overview.html@0657982e81af
children 877f01720036
comparison
equal deleted inserted replaced
297:0657982e81af 298:1c330913ff13
1 {# display the list of list #}
2
3 {% set category_menu = [('list_item_new', url_list_new)] %}
4 {% extends 'base/base.html' %}
5 {% import 'input/xmlui.html' as xmlui with context %}
6 {% import 'input/navigation.html' as navigation with context %}
7 {% import 'input/textbox.html' as textbox with context %}
8
9 {% block body %}
10 <section class="section has-background-white">
11 <nav class="level mb-4">
12 <div class="level-left">
13 <div class="level-item">
14 {{ component.action_button(url_list_new) }}
15 </div>
16 </div>
17 <div class="level-right">
18 <div class="level-item">
19 {{ textbox.search() }}
20 </div>
21 </div>
22 </nav>
23 <div id="list" class="container has-background-white px-1 py-1">
24 {{ xmlui.generate_list(
25 list_items,
26 (
27 ('title', _('Title')),
28 ('labels', _('Labels')),
29 ('id', _('Id')),
30 ('author', _('Author')),
31 ),
32 {
33 'id': '\n#{value}',
34 'author': _('by {value}'),
35 },
36 item_class_fields=['status', 'priority', 'severity'],
37 field_class_map={
38 'title': 'has-text-weight-bold',
39 'labels': 'tag is-rounded x-is-hoverable',
40 'id': 'has-text-grey-light is-size-7 has-whitespace-pre-wrap',
41 'author': 'is-size-7'
42 },
43 on_click=on_list_item_click)
44 }}
45 </div>
46 </section>
47 {{ navigation.prev_next(_("previous page"), _("next page")) }}
48 {% endblock body %}