Mercurial > libervia-templates
annotate 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 |
rev | line source |
---|---|
298
1c330913ff13
bulma (tickets): renamed "tickets" to "lists"
Goffi <goffi@goffi.org>
parents:
297
diff
changeset
|
1 {# display the list of list #} |
230 | 2 |
298
1c330913ff13
bulma (tickets): renamed "tickets" to "lists"
Goffi <goffi@goffi.org>
parents:
297
diff
changeset
|
3 {% set category_menu = [('list_item_new', url_list_new)] %} |
230 | 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"> |
298
1c330913ff13
bulma (tickets): renamed "tickets" to "lists"
Goffi <goffi@goffi.org>
parents:
297
diff
changeset
|
13 <div class="level-item"> |
1c330913ff13
bulma (tickets): renamed "tickets" to "lists"
Goffi <goffi@goffi.org>
parents:
297
diff
changeset
|
14 {{ component.action_button(url_list_new) }} |
1c330913ff13
bulma (tickets): renamed "tickets" to "lists"
Goffi <goffi@goffi.org>
parents:
297
diff
changeset
|
15 </div> |
297
0657982e81af
bulma (ticket/overview): add a search box
Goffi <goffi@goffi.org>
parents:
246
diff
changeset
|
16 </div> |
0657982e81af
bulma (ticket/overview): add a search box
Goffi <goffi@goffi.org>
parents:
246
diff
changeset
|
17 <div class="level-right"> |
0657982e81af
bulma (ticket/overview): add a search box
Goffi <goffi@goffi.org>
parents:
246
diff
changeset
|
18 <div class="level-item"> |
0657982e81af
bulma (ticket/overview): add a search box
Goffi <goffi@goffi.org>
parents:
246
diff
changeset
|
19 {{ textbox.search() }} |
0657982e81af
bulma (ticket/overview): add a search box
Goffi <goffi@goffi.org>
parents:
246
diff
changeset
|
20 </div> |
0657982e81af
bulma (ticket/overview): add a search box
Goffi <goffi@goffi.org>
parents:
246
diff
changeset
|
21 </div> |
0657982e81af
bulma (ticket/overview): add a search box
Goffi <goffi@goffi.org>
parents:
246
diff
changeset
|
22 </nav> |
298
1c330913ff13
bulma (tickets): renamed "tickets" to "lists"
Goffi <goffi@goffi.org>
parents:
297
diff
changeset
|
23 <div id="list" class="container has-background-white px-1 py-1"> |
230 | 24 {{ xmlui.generate_list( |
298
1c330913ff13
bulma (tickets): renamed "tickets" to "lists"
Goffi <goffi@goffi.org>
parents:
297
diff
changeset
|
25 list_items, |
230 | 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', | |
235
f5f428a50c10
chat, ticket: use `pre-wrap` instead of `pre` for whitespaces
Goffi <goffi@goffi.org>
parents:
230
diff
changeset
|
40 'id': 'has-text-grey-light is-size-7 has-whitespace-pre-wrap', |
230 | 41 'author': 'is-size-7' |
42 }, | |
298
1c330913ff13
bulma (tickets): renamed "tickets" to "lists"
Goffi <goffi@goffi.org>
parents:
297
diff
changeset
|
43 on_click=on_list_item_click) |
230 | 44 }} |
45 </div> | |
46 </section> | |
47 {{ navigation.prev_next(_("previous page"), _("next page")) }} | |
48 {% endblock body %} |