view default/event/attendance.html @ 44:580670430fa2

blog/item: expand/reduce improvments: - only expand_box is now clickable, not the whole article anymore, avoiding unwanted click - when in .clicked state, message is "Click to reduce" instead of "expand" - in .clicked state, expand_box is only visible on :hover - in .clicked state, and expand_box is available at top and bottom
author Goffi <goffi@goffi.org>
date Thu, 13 Jul 2017 19:23:02 +0200
parents eb9a42fca6c8
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>