{% 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 %}
{% 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 %}
{% if booking.absence_form %}
{% 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" %}