annotate sat_templates/templates/bulma/list/overview.html @ 303:877f01720036

bulma (lists): creation, invitations, item deletion: - add interface to create lists from templates - show list specific icon when available in lists discovery - owned lists can be deleted from lists discovery - lists can now be created from templates - when edition is allowed, a delete button let now delete a list item from single item view - new button to launch invitation manager from list overview
author Goffi <goffi@goffi.org>
date Sat, 20 Feb 2021 13:39:11 +0100
parents 1c330913ff13
children 27511c821481
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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
0e69b5843c2f theme: bulma theme first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
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
0e69b5843c2f theme: bulma theme first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
4 {% extends 'base/base.html' %}
0e69b5843c2f theme: bulma theme first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
5 {% import 'input/xmlui.html' as xmlui with context %}
0e69b5843c2f theme: bulma theme first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
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
0e69b5843c2f theme: bulma theme first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
8
0e69b5843c2f theme: bulma theme first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
9 {% block body %}
0e69b5843c2f theme: bulma theme first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
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>
303
877f01720036 bulma (lists): creation, invitations, item deletion:
Goffi <goffi@goffi.org>
parents: 298
diff changeset
16 {% if owner %}
877f01720036 bulma (lists): creation, invitations, item deletion:
Goffi <goffi@goffi.org>
parents: 298
diff changeset
17 <div class="level-item">
877f01720036 bulma (lists): creation, invitations, item deletion:
Goffi <goffi@goffi.org>
parents: 298
diff changeset
18 {{
877f01720036 bulma (lists): creation, invitations, item deletion:
Goffi <goffi@goffi.org>
parents: 298
diff changeset
19 component.action_button(
877f01720036 bulma (lists): creation, invitations, item deletion:
Goffi <goffi@goffi.org>
parents: 298
diff changeset
20 "#",
877f01720036 bulma (lists): creation, invitations, item deletion:
Goffi <goffi@goffi.org>
parents: 298
diff changeset
21 label=_("manage invitations"),
877f01720036 bulma (lists): creation, invitations, item deletion:
Goffi <goffi@goffi.org>
parents: 298
diff changeset
22 icon="group",
877f01720036 bulma (lists): creation, invitations, item deletion:
Goffi <goffi@goffi.org>
parents: 298
diff changeset
23 id="button_manage")
877f01720036 bulma (lists): creation, invitations, item deletion:
Goffi <goffi@goffi.org>
parents: 298
diff changeset
24 }}
877f01720036 bulma (lists): creation, invitations, item deletion:
Goffi <goffi@goffi.org>
parents: 298
diff changeset
25 </div>
877f01720036 bulma (lists): creation, invitations, item deletion:
Goffi <goffi@goffi.org>
parents: 298
diff changeset
26 {% endif %}
297
0657982e81af bulma (ticket/overview): add a search box
Goffi <goffi@goffi.org>
parents: 246
diff changeset
27 </div>
0657982e81af bulma (ticket/overview): add a search box
Goffi <goffi@goffi.org>
parents: 246
diff changeset
28 <div class="level-right">
0657982e81af bulma (ticket/overview): add a search box
Goffi <goffi@goffi.org>
parents: 246
diff changeset
29 <div class="level-item">
0657982e81af bulma (ticket/overview): add a search box
Goffi <goffi@goffi.org>
parents: 246
diff changeset
30 {{ textbox.search() }}
0657982e81af bulma (ticket/overview): add a search box
Goffi <goffi@goffi.org>
parents: 246
diff changeset
31 </div>
0657982e81af bulma (ticket/overview): add a search box
Goffi <goffi@goffi.org>
parents: 246
diff changeset
32 </div>
0657982e81af bulma (ticket/overview): add a search box
Goffi <goffi@goffi.org>
parents: 246
diff changeset
33 </nav>
298
1c330913ff13 bulma (tickets): renamed "tickets" to "lists"
Goffi <goffi@goffi.org>
parents: 297
diff changeset
34 <div id="list" class="container has-background-white px-1 py-1">
230
0e69b5843c2f theme: bulma theme first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
35 {{ xmlui.generate_list(
298
1c330913ff13 bulma (tickets): renamed "tickets" to "lists"
Goffi <goffi@goffi.org>
parents: 297
diff changeset
36 list_items,
230
0e69b5843c2f theme: bulma theme first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
37 (
0e69b5843c2f theme: bulma theme first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
38 ('title', _('Title')),
0e69b5843c2f theme: bulma theme first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
39 ('labels', _('Labels')),
0e69b5843c2f theme: bulma theme first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
40 ('id', _('Id')),
0e69b5843c2f theme: bulma theme first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
41 ('author', _('Author')),
0e69b5843c2f theme: bulma theme first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
42 ),
0e69b5843c2f theme: bulma theme first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
43 {
0e69b5843c2f theme: bulma theme first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
44 'id': '\n#{value}',
0e69b5843c2f theme: bulma theme first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
45 'author': _('by {value}'),
0e69b5843c2f theme: bulma theme first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
46 },
0e69b5843c2f theme: bulma theme first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
47 item_class_fields=['status', 'priority', 'severity'],
0e69b5843c2f theme: bulma theme first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
48 field_class_map={
0e69b5843c2f theme: bulma theme first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
49 'title': 'has-text-weight-bold',
0e69b5843c2f theme: bulma theme first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
50 '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
51 'id': 'has-text-grey-light is-size-7 has-whitespace-pre-wrap',
230
0e69b5843c2f theme: bulma theme first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
52 'author': 'is-size-7'
0e69b5843c2f theme: bulma theme first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
53 },
298
1c330913ff13 bulma (tickets): renamed "tickets" to "lists"
Goffi <goffi@goffi.org>
parents: 297
diff changeset
54 on_click=on_list_item_click)
230
0e69b5843c2f theme: bulma theme first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
55 }}
0e69b5843c2f theme: bulma theme first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
56 </div>
0e69b5843c2f theme: bulma theme first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
57 </section>
0e69b5843c2f theme: bulma theme first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
58 {{ navigation.prev_next(_("previous page"), _("next page")) }}
0e69b5843c2f theme: bulma theme first draft:
Goffi <goffi@goffi.org>
parents:
diff changeset
59 {% endblock body %}