view default/event/attendance.html @ 19:422c54e0204a

event: adaptation to changes in backend/Libervia + background_image can now be specified in template data
author Goffi <goffi@goffi.org>
date Fri, 19 May 2017 12:59:43 +0200
parents 48b831ab4238
children 8fa2fd2e928e
line wrap: on
line source

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

<div class="attendance box">
    <p class="poll_instructions">Please indicate if you plan to attend the event:</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", "no", "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>