Mercurial > libervia-templates
annotate sat_templates/templates/bulma/list/discover.html @ 304:cdf88211b86b
bulma (input/field): `field` macro now has `control_class` and `in_group` attributes:
- `control_class` is used to specify additional classes for the control (when `class` is
used for classes of the of the `field`)
- when `in_group` is `true`, `field` is not added, only the `control` is used. This is
useful for grouping elements in the same field
author | Goffi <goffi@goffi.org> |
---|---|
date | Sat, 27 Feb 2021 20:44:01 +0100 |
parents | 877f01720036 |
children | 3054387cac3b |
rev | line source |
---|---|
298
1c330913ff13
bulma (tickets): renamed "tickets" to "lists"
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
1 {% extends 'base/base.html' %} |
1c330913ff13
bulma (tickets): renamed "tickets" to "lists"
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
2 {% import 'components/block.html' as block with context %} |
1c330913ff13
bulma (tickets): renamed "tickets" to "lists"
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
3 {% import 'components/images.html' as images with context %} |
1c330913ff13
bulma (tickets): renamed "tickets" to "lists"
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
4 {% import 'components/avatar.html' as avatar with context %} |
1c330913ff13
bulma (tickets): renamed "tickets" to "lists"
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
5 {% import 'input/form.html' as form with context %} |
1c330913ff13
bulma (tickets): renamed "tickets" to "lists"
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
6 {% import 'input/field.html' as field with context %} |
1c330913ff13
bulma (tickets): renamed "tickets" to "lists"
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
7 |
1c330913ff13
bulma (tickets): renamed "tickets" to "lists"
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
8 {% block body %} |
1c330913ff13
bulma (tickets): renamed "tickets" to "lists"
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
9 {{ icon_defs('clipboard') }} |
303
877f01720036
bulma (lists): creation, invitations, item deletion:
Goffi <goffi@goffi.org>
parents:
298
diff
changeset
|
10 {% if icons_names is defined %} |
877f01720036
bulma (lists): creation, invitations, item deletion:
Goffi <goffi@goffi.org>
parents:
298
diff
changeset
|
11 {{ icon_defs(*icons_names) }} |
877f01720036
bulma (lists): creation, invitations, item deletion:
Goffi <goffi@goffi.org>
parents:
298
diff
changeset
|
12 {% endif %} |
298
1c330913ff13
bulma (tickets): renamed "tickets" to "lists"
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
13 <section class="section"> |
303
877f01720036
bulma (lists): creation, invitations, item deletion:
Goffi <goffi@goffi.org>
parents:
298
diff
changeset
|
14 <nav class="level mb-4"> |
877f01720036
bulma (lists): creation, invitations, item deletion:
Goffi <goffi@goffi.org>
parents:
298
diff
changeset
|
15 <div class="level-left"> |
877f01720036
bulma (lists): creation, invitations, item deletion:
Goffi <goffi@goffi.org>
parents:
298
diff
changeset
|
16 <div class="level-item"> |
877f01720036
bulma (lists): creation, invitations, item deletion:
Goffi <goffi@goffi.org>
parents:
298
diff
changeset
|
17 {{ component.action_button(url_list_create, label=_("create a list")) }} |
877f01720036
bulma (lists): creation, invitations, item deletion:
Goffi <goffi@goffi.org>
parents:
298
diff
changeset
|
18 </div> |
877f01720036
bulma (lists): creation, invitations, item deletion:
Goffi <goffi@goffi.org>
parents:
298
diff
changeset
|
19 </div> |
877f01720036
bulma (lists): creation, invitations, item deletion:
Goffi <goffi@goffi.org>
parents:
298
diff
changeset
|
20 </nav> |
298
1c330913ff13
bulma (tickets): renamed "tickets" to "lists"
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
21 <article class="message has-text-centered"> |
1c330913ff13
bulma (tickets): renamed "tickets" to "lists"
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
22 <div class="message-body"> |
1c330913ff13
bulma (tickets): renamed "tickets" to "lists"
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
23 {% trans %} |
1c330913ff13
bulma (tickets): renamed "tickets" to "lists"
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
24 Please select the list to use. |
1c330913ff13
bulma (tickets): renamed "tickets" to "lists"
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
25 {% endtrans %} |
1c330913ff13
bulma (tickets): renamed "tickets" to "lists"
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
26 </div> |
1c330913ff13
bulma (tickets): renamed "tickets" to "lists"
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
27 </article> |
1c330913ff13
bulma (tickets): renamed "tickets" to "lists"
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
28 {% if lists_directory is defined %} |
1c330913ff13
bulma (tickets): renamed "tickets" to "lists"
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
29 <div class="disco_lists"> |
303
877f01720036
bulma (lists): creation, invitations, item deletion:
Goffi <goffi@goffi.org>
parents:
298
diff
changeset
|
30 |
877f01720036
bulma (lists): creation, invitations, item deletion:
Goffi <goffi@goffi.org>
parents:
298
diff
changeset
|
31 <div class="columns is-multiline is-mobile"> |
877f01720036
bulma (lists): creation, invitations, item deletion:
Goffi <goffi@goffi.org>
parents:
298
diff
changeset
|
32 {% for list_data in lists_directory %} |
877f01720036
bulma (lists): creation, invitations, item deletion:
Goffi <goffi@goffi.org>
parents:
298
diff
changeset
|
33 {{ block.icon_item( |
877f01720036
bulma (lists): creation, invitations, item deletion:
Goffi <goffi@goffi.org>
parents:
298
diff
changeset
|
34 list_data.icon_name or "clipboard", |
877f01720036
bulma (lists): creation, invitations, item deletion:
Goffi <goffi@goffi.org>
parents:
298
diff
changeset
|
35 list_data.name, |
877f01720036
bulma (lists): creation, invitations, item deletion:
Goffi <goffi@goffi.org>
parents:
298
diff
changeset
|
36 list_data.url, |
877f01720036
bulma (lists): creation, invitations, item deletion:
Goffi <goffi@goffi.org>
parents:
298
diff
changeset
|
37 delete_icon=list_data.creator, |
877f01720036
bulma (lists): creation, invitations, item deletion:
Goffi <goffi@goffi.org>
parents:
298
diff
changeset
|
38 data=list_data) |
877f01720036
bulma (lists): creation, invitations, item deletion:
Goffi <goffi@goffi.org>
parents:
298
diff
changeset
|
39 }} |
877f01720036
bulma (lists): creation, invitations, item deletion:
Goffi <goffi@goffi.org>
parents:
298
diff
changeset
|
40 {% endfor %} |
877f01720036
bulma (lists): creation, invitations, item deletion:
Goffi <goffi@goffi.org>
parents:
298
diff
changeset
|
41 </div> |
298
1c330913ff13
bulma (tickets): renamed "tickets" to "lists"
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
42 </div> |
1c330913ff13
bulma (tickets): renamed "tickets" to "lists"
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
43 {% endif %} |
1c330913ff13
bulma (tickets): renamed "tickets" to "lists"
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
44 </section> |
1c330913ff13
bulma (tickets): renamed "tickets" to "lists"
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
45 <section class="section"> |
1c330913ff13
bulma (tickets): renamed "tickets" to "lists"
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
46 {% call form.form(class="form--single") %} |
1c330913ff13
bulma (tickets): renamed "tickets" to "lists"
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
47 {{ field.text("jid", _("list jid"), required=true)}} |
1c330913ff13
bulma (tickets): renamed "tickets" to "lists"
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
48 {{ field.submit(_("Access")) }} |
1c330913ff13
bulma (tickets): renamed "tickets" to "lists"
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
49 {% endcall %} |
1c330913ff13
bulma (tickets): renamed "tickets" to "lists"
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
50 </section> |
1c330913ff13
bulma (tickets): renamed "tickets" to "lists"
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
51 {% endblock body %} |