Mercurial > libervia-templates
annotate sat_templates/templates/bulma/ticket/overview.html @ 297:0657982e81af
bulma (ticket/overview): add a search box
author | Goffi <goffi@goffi.org> |
---|---|
date | Fri, 11 Dec 2020 17:30:47 +0100 |
parents | 1928ba66c194 |
children |
rev | line source |
---|---|
230 | 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 %} | |
297
0657982e81af
bulma (ticket/overview): add a search box
Goffi <goffi@goffi.org>
parents:
246
diff
changeset
|
7 {% import 'input/textbox.html' as textbox with context %} |
230 | 8 |
9 {% block body %} | |
10 <section class="section has-background-white"> | |
297
0657982e81af
bulma (ticket/overview): add a search box
Goffi <goffi@goffi.org>
parents:
246
diff
changeset
|
11 <nav class="level mb-4"> |
0657982e81af
bulma (ticket/overview): add a search box
Goffi <goffi@goffi.org>
parents:
246
diff
changeset
|
12 <div class="level-left"> |
0657982e81af
bulma (ticket/overview): add a search box
Goffi <goffi@goffi.org>
parents:
246
diff
changeset
|
13 {{ component.action_button(url_tickets_new) }} |
0657982e81af
bulma (ticket/overview): add a search box
Goffi <goffi@goffi.org>
parents:
246
diff
changeset
|
14 </div> |
0657982e81af
bulma (ticket/overview): add a search box
Goffi <goffi@goffi.org>
parents:
246
diff
changeset
|
15 <div class="level-right"> |
0657982e81af
bulma (ticket/overview): add a search box
Goffi <goffi@goffi.org>
parents:
246
diff
changeset
|
16 <div class="level-item"> |
0657982e81af
bulma (ticket/overview): add a search box
Goffi <goffi@goffi.org>
parents:
246
diff
changeset
|
17 {{ textbox.search() }} |
0657982e81af
bulma (ticket/overview): add a search box
Goffi <goffi@goffi.org>
parents:
246
diff
changeset
|
18 </div> |
0657982e81af
bulma (ticket/overview): add a search box
Goffi <goffi@goffi.org>
parents:
246
diff
changeset
|
19 </div> |
0657982e81af
bulma (ticket/overview): add a search box
Goffi <goffi@goffi.org>
parents:
246
diff
changeset
|
20 </nav> |
246
1928ba66c194
bulma: replaced custom styles by new spacing helpers
Goffi <goffi@goffi.org>
parents:
235
diff
changeset
|
21 <div id="tickets" class="container has-background-white px-1 py-1"> |
230 | 22 {{ xmlui.generate_list( |
23 tickets, | |
24 ( | |
25 ('title', _('Title')), | |
26 ('labels', _('Labels')), | |
27 ('id', _('Id')), | |
28 ('author', _('Author')), | |
29 ), | |
30 { | |
31 'id': '\n#{value}', | |
32 'author': _('by {value}'), | |
33 }, | |
34 item_class_fields=['status', 'priority', 'severity'], | |
35 field_class_map={ | |
36 'title': 'has-text-weight-bold', | |
37 'labels': 'tag is-rounded x-is-hoverable', | |
235
f5f428a50c10
chat, ticket: use `pre-wrap` instead of `pre` for whitespaces
Goffi <goffi@goffi.org>
parents:
230
diff
changeset
|
38 'id': 'has-text-grey-light is-size-7 has-whitespace-pre-wrap', |
230 | 39 'author': 'is-size-7' |
40 }, | |
41 on_click=on_ticket_click) | |
42 }} | |
43 </div> | |
44 </section> | |
45 {{ navigation.prev_next(_("previous page"), _("next page")) }} | |
46 {% endblock body %} |