{% extends 'rb/emails/base_email.html' %} {% block header_recipient %}{% trans name=user.first_name %}Dear {{ name }},{% endtrans %}{% endblock %} {% block subject %}{% trans %}Reservation reminder{% endtrans %}{% endblock %} {% block body -%} {%- if occurrences | length == 1 -%} {% trans %}This is a reminder about a booking under your name:{% endtrans %}
{%- else -%} {% trans %}This is a reminder about bookings under your name:{% endtrans %}
{%- endif %} {%- endblock %} {% macro _render_time(occurrence) -%} {{ occurrence.start_dt | format_time(locale='en_GB') }} - {{ occurrence.end_dt | format_time(locale='en_GB') }} {%- endmacro %} {% macro _render_occurrence(occurrence) -%} {% set reservation = occurrence.reservation -%} {{ occurrence.start_dt | format_date('EEEE dd/MM/yyyy', locale='en_GB') }} ({{ _render_time(occurrence) }})
{% trans %}Room:{% endtrans %} {{ reservation.room.full_name }}
{% trans %}Reason:{% endtrans %} {{ reservation.booking_reason }}

{%- if reservation.repeat_frequency.name == 'NEVER' -%} {% trans link=''|format(reservation.external_details_url)|safe, endlink=''|safe %} If you do not need to use the room, please {{ link }}cancel the reservation in Indico{{ endlink }}. {%- endtrans -%} {%- else -%} {% trans link=''|format(occurrence.external_cancellation_url)|safe, endlink=''|safe %} If you do not need to use the room, please {{ link }}cancel the occurrence in Indico{{ endlink }}. {%- endtrans -%} {%- endif -%} {%- endmacro %}