{% extends 'events/management/base.html' %} {% from 'forms/_form.html' import form_row %} {% block title %} {% trans %}Event bookings{% endtrans %} {% endblock %} {% block content %}
{%- trans %}Event{% endtrans -%}
{{ event.title }}
{% set past_title = _('Event has already finished') %} {% if event_rb_params.type == 'mixed_times' %} {% else %} {%- trans %}Book{% endtrans -%} {% endif %}
{% if has_contribs %}
{%- trans %}Contribution{% endtrans -%}
{{ form_row(form.contribution, skip_label=true, hide_description=true, widget_attrs={'data_link_type': 'contribution'}) }}
{% endif %} {% if has_session_blocks %}
{%- trans %}Session block{% endtrans -%}
{{ form_row(form.session_block, skip_label=true, hide_description=true, widget_attrs={'data_link_type': 'sessionBlock'}) }}
{% endif %}
{% if links %}

Room bookings

{% for link in links %} {% set reservation = link.reservation %} {% endfor %}
{% trans %}Room{% endtrans %} {% trans %}Reason{% endtrans %} {% trans %}For whom{% endtrans %} {% trans %}Date{% endtrans %} {% trans %}Time{% endtrans %} {% trans %}Linked to{% endtrans %}
{{ reservation.room.full_name }} {% if reservation.is_rejected %} {% elif reservation.is_pending %} {% endif %} {{ reservation.booking_reason }} {{ reservation.booked_for_name }} {{ reservation.start_dt | format_date()}} {% if reservation.is_repeating %} ({% trans %}recurring{% endtrans %}) {% endif %} {{ reservation.start_dt | format_time() }} - {{ reservation.end_dt | format_time() }} {{ booking_details_link(reservation) }}
{% endif %}
{% endblock %} {% macro booking_details_link(reservation) %} {% endmacro %}