annotate sat_templates/templates/default/photo/create.html @ 249:60bf3e45d7b2

bulma (input/field): don't use kwargs anymore: `**kwargs` syntax is not supported by `nunjucks`. To work around this, most important arguments have been added directly to macros, and an extra `attrs` argument can be used for others.
author Goffi <goffi@goffi.org>
date Thu, 16 Jul 2020 09:08:34 +0200
parents 11874a332add
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
241
11874a332add photo/create: photo album creation
Goffi <goffi@goffi.org>
parents:
diff changeset
1 {# create a new event #}
11874a332add photo/create: photo album creation
Goffi <goffi@goffi.org>
parents:
diff changeset
2
11874a332add photo/create: photo album creation
Goffi <goffi@goffi.org>
parents:
diff changeset
3 {% extends 'base/base.html' %}
11874a332add photo/create: photo album creation
Goffi <goffi@goffi.org>
parents:
diff changeset
4 {% import 'input/form.html' as form with context %}
11874a332add photo/create: photo album creation
Goffi <goffi@goffi.org>
parents:
diff changeset
5 {% import 'input/field.html' as field with context %}
11874a332add photo/create: photo album creation
Goffi <goffi@goffi.org>
parents:
diff changeset
6
11874a332add photo/create: photo album creation
Goffi <goffi@goffi.org>
parents:
diff changeset
7 {% block body %}
11874a332add photo/create: photo album creation
Goffi <goffi@goffi.org>
parents:
diff changeset
8 <div class='instructions--head'>
11874a332add photo/create: photo album creation
Goffi <goffi@goffi.org>
parents:
diff changeset
9 {% trans %}Create an event{% endtrans %}
11874a332add photo/create: photo album creation
Goffi <goffi@goffi.org>
parents:
diff changeset
10 </div>
11874a332add photo/create: photo album creation
Goffi <goffi@goffi.org>
parents:
diff changeset
11 <div class="box--hollow">
11874a332add photo/create: photo album creation
Goffi <goffi@goffi.org>
parents:
diff changeset
12 {% call form.form(class="form--paper form__panel--vertical") %}
11874a332add photo/create: photo album creation
Goffi <goffi@goffi.org>
parents:
diff changeset
13 {{ field.text("name", _("album name"), required=true) }}
11874a332add photo/create: photo album creation
Goffi <goffi@goffi.org>
parents:
diff changeset
14 {{ field.submit(_("Create photo album")) }}
11874a332add photo/create: photo album creation
Goffi <goffi@goffi.org>
parents:
diff changeset
15 {% endcall %}
11874a332add photo/create: photo album creation
Goffi <goffi@goffi.org>
parents:
diff changeset
16 </div>
11874a332add photo/create: photo album creation
Goffi <goffi@goffi.org>
parents:
diff changeset
17 {% endblock body %}