view sat_templates/templates/default/event/attendance.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 e9f0a4215e46
children
line wrap: on
line source

{% import 'input/form.html' as form with context %}
{% import 'input/field.html' as field with context %}

<div class="attendance box">
    <p class="poll_instructions">{% trans %}Please indicate if you plan to attend the event:{% endtrans %}</p>
    {% call form.form() %}
        {{ field.meta("type", "attendance") }}
        {{ field.meta("service", event.invitees_service) }}
        {{ field.meta("node", event.invitees_node) }}
        <div class="attending">
            {{ field.choices("attend", (("yes", _("yes")), ("no", _("no")), ("maybe", _("maybe"))), checked=invitee.attend) }}
        </div>
        <div class="guests">
            {{ field.int("guests", label=_("How many people will come (including you)?"), init=invitee.get("guests", 1)) }}
        </div>
        <div class="submit">
            {{ field.submit() }}
        </div>
    {% endcall %}
</div>