annotate sat_templates/templates/bulma/list/create_from_template.html @ 309:27511c821481

bulma (list/overview): use specialised view for `grocery` list
author Goffi <goffi@goffi.org>
date Sat, 27 Feb 2021 20:54:13 +0100
parents 877f01720036
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
303
877f01720036 bulma (lists): creation, invitations, item deletion:
Goffi <goffi@goffi.org>
parents:
diff changeset
1 {% extends 'base/base.html' %}
877f01720036 bulma (lists): creation, invitations, item deletion:
Goffi <goffi@goffi.org>
parents:
diff changeset
2 {% import 'input/form.html' as form with context %}
877f01720036 bulma (lists): creation, invitations, item deletion:
Goffi <goffi@goffi.org>
parents:
diff changeset
3 {% import 'input/field.html' as field with context %}
877f01720036 bulma (lists): creation, invitations, item deletion:
Goffi <goffi@goffi.org>
parents:
diff changeset
4
877f01720036 bulma (lists): creation, invitations, item deletion:
Goffi <goffi@goffi.org>
parents:
diff changeset
5 {% block body %}
877f01720036 bulma (lists): creation, invitations, item deletion:
Goffi <goffi@goffi.org>
parents:
diff changeset
6 {{ icon_defs(list_template.icon) }}
877f01720036 bulma (lists): creation, invitations, item deletion:
Goffi <goffi@goffi.org>
parents:
diff changeset
7 <section class="section">
877f01720036 bulma (lists): creation, invitations, item deletion:
Goffi <goffi@goffi.org>
parents:
diff changeset
8 <article class="message is-info">
877f01720036 bulma (lists): creation, invitations, item deletion:
Goffi <goffi@goffi.org>
parents:
diff changeset
9 <div class="message-body">
877f01720036 bulma (lists): creation, invitations, item deletion:
Goffi <goffi@goffi.org>
parents:
diff changeset
10 {% trans list_type=list_template.name %}
877f01720036 bulma (lists): creation, invitations, item deletion:
Goffi <goffi@goffi.org>
parents:
diff changeset
11 You're about to create a new list ({{list_type}}).
877f01720036 bulma (lists): creation, invitations, item deletion:
Goffi <goffi@goffi.org>
parents:
diff changeset
12 {% endtrans %}
877f01720036 bulma (lists): creation, invitations, item deletion:
Goffi <goffi@goffi.org>
parents:
diff changeset
13 </div>
877f01720036 bulma (lists): creation, invitations, item deletion:
Goffi <goffi@goffi.org>
parents:
diff changeset
14 </article>
877f01720036 bulma (lists): creation, invitations, item deletion:
Goffi <goffi@goffi.org>
parents:
diff changeset
15 {% call form.form(class="form--paper form__panel--vertical") %}
877f01720036 bulma (lists): creation, invitations, item deletion:
Goffi <goffi@goffi.org>
parents:
diff changeset
16 {{ field.text("name", _("name of the list"), required=true) }}
877f01720036 bulma (lists): creation, invitations, item deletion:
Goffi <goffi@goffi.org>
parents:
diff changeset
17 <div class="box">
877f01720036 bulma (lists): creation, invitations, item deletion:
Goffi <goffi@goffi.org>
parents:
diff changeset
18 <label class="label">
877f01720036 bulma (lists): creation, invitations, item deletion:
Goffi <goffi@goffi.org>
parents:
diff changeset
19 {% trans %}Is this list private or public?{% endtrans %}
877f01720036 bulma (lists): creation, invitations, item deletion:
Goffi <goffi@goffi.org>
parents:
diff changeset
20 </label>
877f01720036 bulma (lists): creation, invitations, item deletion:
Goffi <goffi@goffi.org>
parents:
diff changeset
21 <div class="message">
877f01720036 bulma (lists): creation, invitations, item deletion:
Goffi <goffi@goffi.org>
parents:
diff changeset
22 <div class="message-body is-dark has-whitespace-pre-line">
877f01720036 bulma (lists): creation, invitations, item deletion:
Goffi <goffi@goffi.org>
parents:
diff changeset
23 {%- trans notrimmed -%}
877f01720036 bulma (lists): creation, invitations, item deletion:
Goffi <goffi@goffi.org>
parents:
diff changeset
24 Private lists are only visible by yourself (and people you invite later).
877f01720036 bulma (lists): creation, invitations, item deletion:
Goffi <goffi@goffi.org>
parents:
diff changeset
25 Public lists can be accessed by anybody.
877f01720036 bulma (lists): creation, invitations, item deletion:
Goffi <goffi@goffi.org>
parents:
diff changeset
26 {%- endtrans -%}
877f01720036 bulma (lists): creation, invitations, item deletion:
Goffi <goffi@goffi.org>
parents:
diff changeset
27 </div>
877f01720036 bulma (lists): creation, invitations, item deletion:
Goffi <goffi@goffi.org>
parents:
diff changeset
28 </div>
877f01720036 bulma (lists): creation, invitations, item deletion:
Goffi <goffi@goffi.org>
parents:
diff changeset
29 {{ field.choices("access", (("private", _("private")), ("public", _("public"))), checked="private") }}
877f01720036 bulma (lists): creation, invitations, item deletion:
Goffi <goffi@goffi.org>
parents:
diff changeset
30 </div>
877f01720036 bulma (lists): creation, invitations, item deletion:
Goffi <goffi@goffi.org>
parents:
diff changeset
31 {{ field.submit(_("Create list")) }}
877f01720036 bulma (lists): creation, invitations, item deletion:
Goffi <goffi@goffi.org>
parents:
diff changeset
32 {% endcall %}
877f01720036 bulma (lists): creation, invitations, item deletion:
Goffi <goffi@goffi.org>
parents:
diff changeset
33 </section>
877f01720036 bulma (lists): creation, invitations, item deletion:
Goffi <goffi@goffi.org>
parents:
diff changeset
34 {% endblock body %}