{% extends 'rb/emails/reservations/base_email_to_user.txt' %}
{% block subject_prefix %}{% endblock %}
{% block subject -%}{% trans room=reservation.room.full_name, start=reservation.start_dt|format_datetime('short') -%}
    [{{ room }}] Booking confirmed ({{ start }})
{%- endtrans %}{%- endblock %}

{% block email_body -%}
    {%- filter dedent -%}
        {% block state -%}
            {% trans %}Your booking has been ACCEPTED.{% endtrans %}
            {% trans %}This is the final confirmation.{% endtrans %}

            {%- if reason %}

                {% trans %}The following message was provided by the room manager:{% endtrans %}
                {{ reason }}
            {%- endif -%}
        {%- endblock %}

        {% include 'rb/emails/reservations/reservation_info.txt' %}
        {%- include 'rb/emails/reservations/reservation_key_info.txt' %}
    {%- endfilter -%}
{%- endblock %}
