{% extends 'events/management/base.html' %} {% from 'forms/_form.html' import form_row %} {% block title %} {% trans %}Room bookings{% endtrans %} {% endblock %} {% block content %}
{% if is_rb_visible %}
{%- trans %}Event{% endtrans -%}
{{ event.title }}
{% set past_title = _('Event has already finished') %} {% set all_days_params = dict(event_rb_params.params, **event_rb_params.all_days_params) %} {%- trans %}Link existing booking{% endtrans -%} {% if 'per_day_params' in event_rb_params %} {% else %} {%- trans %}Book a room{% endtrans -%} {% 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 has_contribs %}
{%- trans %}Contribution{% endtrans -%}
{{ form_row(form.contribution, skip_label=true, hide_description=true, widget_attrs={'data_link_type': 'contribution'}) }}
{% endif %}
{% endif %} {% if links %}

Room bookings

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

{%- trans %}There are no room bookings for this event yet.{% endtrans -%}

{% endif %}
{% endblock %} {% macro booking_details_link(reservation) %} #{{ reservation.id }} {% endmacro %}