comparison sat_templates/templates/bulma/ticket/overview.html @ 230:0e69b5843c2f

theme: bulma theme first draft: This theme uses the Bulma CSS framework, Brython to handle the menu on touch devices, and Sass to customize Bulma. CSS default fallbacks are disabled as Bulma uses its own naming conventions, and default fallbacks would lead to hard to debug conflicts. `common.js` has been slightly improved to handle custom classed in `tab_select` The theme is not complete yet, but it is functional.
author Goffi <goffi@goffi.org>
date Tue, 19 May 2020 00:02:34 +0200
parents
children f5f428a50c10
comparison
equal deleted inserted replaced
229:739c3e6999fa 230:0e69b5843c2f
1 {# display the list of tickets #}
2
3 {% set category_menu = [('ticket_new', url_tickets_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
8 {% block body %}
9 <section class="section has-background-white">
10 <div class="content has-items-centered is-flex">
11 {{ component.action_button(url_tickets_new) }}
12 </div>
13 <div id="tickets" class="container has-background-white has-padding-1">
14 {{ xmlui.generate_list(
15 tickets,
16 (
17 ('title', _('Title')),
18 ('labels', _('Labels')),
19 ('id', _('Id')),
20 ('author', _('Author')),
21 ),
22 {
23 'id': '\n#{value}',
24 'author': _('by {value}'),
25 },
26 item_class_fields=['status', 'priority', 'severity'],
27 field_class_map={
28 'title': 'has-text-weight-bold',
29 'labels': 'tag is-rounded x-is-hoverable',
30 'id': 'has-text-grey-light is-size-7 has-whitespace-pre',
31 'author': 'is-size-7'
32 },
33 on_click=on_ticket_click)
34 }}
35 </div>
36 </section>
37 {{ navigation.prev_next(_("previous page"), _("next page")) }}
38 {% endblock body %}