annotate sat_templates/templates/bulma/photo/create.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 |
11874a332add |
children |
|
rev |
line source |
241
|
1 {# create a new event #} |
|
2 |
|
3 {% extends 'base/base.html' %} |
|
4 {% import 'input/form.html' as form with context %} |
|
5 {% import 'input/field.html' as field with context %} |
|
6 |
|
7 {% block body %} |
|
8 <section class="section"> |
|
9 <h3 class='title is-3'> |
|
10 {% trans %}Create an event{% endtrans %} |
|
11 </h3> |
|
12 {% call form.form(class="form--paper form__panel--vertical") %} |
|
13 {{ field.text("name", _("album name"), required=true) }} |
|
14 {{ field.submit(_("Create a photo album")) }} |
|
15 {% endcall %} |
|
16 </section> |
|
17 {% endblock body %} |