{% extends 'rb/emails/reservations/base_email_to_user.txt' %}
{% set excluded_days = reservation.find_excluded_days().count() %}

{% block body -%}
{%- block booking_details -%}
The conference room {{ reservation.room.full_name }}
has been {% block prebooked_prefix %}{% endblock %}booked for {{ reservation.booked_for_name }}
{% if reservation.repeat_frequency == RepeatFrequency.NEVER -%}
    on {{ reservation.start_dt | format_date('EEEE dd/MM/yyyy', locale='en_GB') }} from {{ reservation.start_dt | format_time(locale='en_GB') }} to {{ reservation.end_dt | format_time(locale='en_GB') }}.
{%- else -%}
    {{ RepeatMapping.get_message(reservation.repeat_frequency, reservation.repeat_interval) }} from {{ reservation.start_dt | format_date('EEEE dd/MM/yyyy', locale='en_GB') }} to {{ reservation.end_dt | format_date('EEEE dd/MM/yyyy', locale='en_GB') }} between {{ reservation.start_dt | format_time(locale='en_GB') }} and {{ reservation.end_dt | format_time(locale='en_GB') }}.
{%- endif %}
Reason: {{ reservation.booking_reason }}
{%- endblock -%}
{%- block confirmed_booking -%}
{%- if excluded_days %}
    (Note that there are {{ excluded_days }} excluded days. For further info, check your reservation)
{%- endif %}

If you end up not needing this room, please cancel the booking from the
booking details so that the room can be booked by somebody else.

Please be aware that in special (rare) cases the person responsible
for this room may reject your booking. Should that happen you will
be instantly notified by e-mail.
{%- endblock %}

{%- include 'rb/emails/reservations/reservation_key_info.txt' %}

{%- block prebooking_warning %}{% endblock %}
{%- endblock %}
