{% extends 'rb/emails/base_email.html' %} {% block header_recipient %}{{ user.first_name }}{% endblock %} {% block subject -%} {% if reservations|length == 1 -%} One of your bookings will come to an end soon {%- else -%} Some of your bookings will come to an end soon {%- endif %} {%- endblock %} {% block body -%} {% block message %} {%- if reservations|length == 1 -%} There is a booking under your name that will soon come to an end:
{%- else -%} There are bookings under your name that will soon come to an end:
{%- endif %} {% endblock %} {%- endblock %} {% macro _render_dates(reservation) -%} {{ reservation.start_dt|format_datetime('EEEE dd/MM/yyyy HH:mm', locale='en_GB') }} - {{ reservation.end_dt|format_datetime('EEEE dd/MM/yyyy HH:mm', locale='en_GB') }} {%- endmacro %} {% macro _render_finishing_reservation(reservation) -%} Dates: {{_render_dates(reservation) }}
Room: {{ reservation.room.full_name }}
Reason of the booking: {{ reservation.booking_reason }}
{%- endmacro %}