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

{% block body -%}
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(locale='en_GB') }} from {{ reservation.start_dt | format_time(locale='en_GB') }} to {{ reservation.end_dt | format_time(locale='en_GB') }}.
{%- else -%}
    {{ RepeatMapping.get_short_name(reservation.repeat_frequency, reservation.repeat_interval) }} from {{ reservation.start_dt | format_date(locale='en_GB') }} to {{ reservation.end_dt | format_date(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 }}
{%- 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 %}

{%- if reservation.uses_vc %}

This room is equipped with remote collaboration features and you've specified that
you intend to use them.  Please note that technical support will be provided only during
CERN working hours (8:30 to 17:30 on week days): Please call 77777 or contact
videoconference-support@cern.ch . After your meeting, you will be able to give IT service
managers feedback about your video/phone conference by accessing this URL:
https://cern.ch/go/MQ8Q
Thanks in advance for your feedback.
{%- endif %}
{%- endblock %}
