{% load i18n %} {% with user_block=booking.get_user_block %} {% if agenda.booking_extra_user_block_template %}{% endif %} {{ user_block }}{% if booking.places_count > 1 %} ({{ booking.places_count }} {% trans "places" %}){% endif %} {% endwith %} {% if booking.kind == "subscription" %} ({% trans "Not booked" %}) {% elif booking.cancellation_datetime is None %} {% if booking.user_check %}{{ booking.user_check.presence|yesno:_('Present,Absent') }}{% else %}-{% endif %} {% if booking.user_check.type_label %} ({{ booking.user_check.type_label }}) {% endif %} {% else %} ({% trans "Cancelled" %}) {% endif %} {% if not event.checked or not agenda.disable_check_update %} {% if booking.user_check and not event.check_locked %}
{% csrf_token %} {% spaceless %} {% with state_before_check=booking.state_before_check %} {% if state_before_check == 'subscribed' %} {% trans 'Reset as "Not booked"' context "check" %} {% elif state_before_check == 'cancelled' %} {% trans 'Reset as "Cancelled"' context "check" %} {% else %} {% trans "Reset" context "check" %} {% endif %} {% endwith %} {% endspaceless %}
{% endif %} {% endif %} {% if not event.check_locked %} {% if booking.overlapping_event %} {% trans "A presence check already exists for overlapping event:" %} {{ booking.overlapping_event }}. {% elif not event.checked or not agenda.disable_check_update %} {% if booking.kind == "subscription" or booking.cancellation_datetime %} {% endif %}
{% csrf_token %} {% if booking.presence_form.check_type.field.choices.1 %}{{ booking.presence_form.check_type }}{% endif %}
{% if booking.absence_form %}
{% csrf_token %} {% if booking.absence_form.check_type.field.choices.1 %}{{ booking.absence_form.check_type }}{% endif %}
{% endif %} {% endif %} {% endif %} {% if include_event_meta %} {# this is produced in the ajax rendering, to be used by the javascript part to update the appbar #} {% include "chrono/manager_event_detail_booking_fragment.html" %} {% endif %}