{% extends 'rb/emails/base_email.html' %} {% block header_recipient %}{{ user.first_name }}{% endblock %} {% block subject %}Reservation reminder{% endblock %} {% block body -%} {%- if occurrences | length == 1 -%} This is a reminder about a booking under your name:
{%- else -%} This is a reminder about bookings under your name:
{%- 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) }})
Room: {{ reservation.room.full_name }}
Reason: {{ reservation.booking_reason }}

{%- if reservation.repeat_frequency.name == 'NEVER' -%} If you do not need to use the room, please cancel the reservation in Indico. {%- else -%} If you do not need to use the room, please cancel the occurrence in Indico. {%- endif -%} {%- endmacro %}