{% extends 'rb/emails/base_email.html' %} {% block header_recipient %}{% trans name=user.first_name %}Dear {{ name }},{% endtrans %}{% endblock %} {% block subject -%} {% if reservations|length == 1 -%} {% trans %}One of your bookings will come to an end soon{% endtrans %} {%- else -%} {% trans %}Some of your bookings will come to an end soon{% endtrans %} {%- endif %} {%- endblock %} {% block body -%} {% block message %} {%- if reservations|length == 1 -%} {% trans %}There is a booking under your name that will soon come to an end:{% endtrans %}
{%- else -%} {% trans %}There are bookings under your name that will soon come to an end:{% endtrans %}
{%- 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) -%} {% trans %}Dates:{% endtrans %} {{ _render_dates(reservation) }}
{% trans %}Room:{% endtrans %} {{ reservation.room.full_name }}
{% trans %}Reason of the booking:{% endtrans %} {{ reservation.booking_reason }}
{%- endmacro %}