annotate sat_templates/templates/default/event/attendance.html @ 230:0e69b5843c2f

theme: bulma theme first draft: This theme uses the Bulma CSS framework, Brython to handle the menu on touch devices, and Sass to customize Bulma. CSS default fallbacks are disabled as Bulma uses its own naming conventions, and default fallbacks would lead to hard to debug conflicts. `common.js` has been slightly improved to handle custom classed in `tab_select` The theme is not complete yet, but it is functional.
author Goffi <goffi@goffi.org>
date Tue, 19 May 2020 00:02:34 +0200
parents e9f0a4215e46
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
37
eb9a42fca6c8 input/form: added csrf_token hidden field if it is defined, and import form with context to get this variable
Goffi <goffi@goffi.org>
parents: 20
diff changeset
1 {% import 'input/form.html' as form with context %}
17
48b831ab4238 event: design improvment
Goffi <goffi@goffi.org>
parents: 11
diff changeset
2 {% import 'input/field.html' as field with context %}
11
6f13b25f1ecf event: event page first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
3
17
48b831ab4238 event: design improvment
Goffi <goffi@goffi.org>
parents: 11
diff changeset
4 <div class="attendance box">
20
8fa2fd2e928e default: added i18n support
Goffi <goffi@goffi.org>
parents: 19
diff changeset
5 <p class="poll_instructions">{% trans %}Please indicate if you plan to attend the event:{% endtrans %}</p>
11
6f13b25f1ecf event: event page first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
6 {% call form.form() %}
6f13b25f1ecf event: event page first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
7 {{ field.meta("type", "attendance") }}
19
422c54e0204a event: adaptation to changes in backend/Libervia + background_image can now be specified in template data
Goffi <goffi@goffi.org>
parents: 17
diff changeset
8 {{ field.meta("service", event.invitees_service) }}
422c54e0204a event: adaptation to changes in backend/Libervia + background_image can now be specified in template data
Goffi <goffi@goffi.org>
parents: 17
diff changeset
9 {{ field.meta("node", event.invitees_node) }}
11
6f13b25f1ecf event: event page first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
10 <div class="attending">
20
8fa2fd2e928e default: added i18n support
Goffi <goffi@goffi.org>
parents: 19
diff changeset
11 {{ field.choices("attend", (("yes", _("yes")), ("no", _("no")), ("maybe", _("maybe"))), checked=invitee.attend) }}
11
6f13b25f1ecf event: event page first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
12 </div>
17
48b831ab4238 event: design improvment
Goffi <goffi@goffi.org>
parents: 11
diff changeset
13 <div class="guests">
20
8fa2fd2e928e default: added i18n support
Goffi <goffi@goffi.org>
parents: 19
diff changeset
14 {{ field.int("guests", label=_("How many people will come (including you)?"), init=invitee.get("guests", 1)) }}
17
48b831ab4238 event: design improvment
Goffi <goffi@goffi.org>
parents: 11
diff changeset
15 </div>
48b831ab4238 event: design improvment
Goffi <goffi@goffi.org>
parents: 11
diff changeset
16 <div class="submit">
48b831ab4238 event: design improvment
Goffi <goffi@goffi.org>
parents: 11
diff changeset
17 {{ field.submit() }}
48b831ab4238 event: design improvment
Goffi <goffi@goffi.org>
parents: 11
diff changeset
18 </div>
11
6f13b25f1ecf event: event page first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
19 {% endcall %}
6f13b25f1ecf event: event page first draft
Goffi <goffi@goffi.org>
parents:
diff changeset
20 </div>