Set locale to en_GB for dates in emails
[cds-indico.git] / indico / modules / rb / templates / emails / reservations / creation_email_to_user.txt
blobd9e89d7eeba10028b2bd87306339b0bfba3709fd
1 {% extends 'rb/emails/reservations/base_email_to_user.txt' %}
2 {% set excluded_days = reservation.find_excluded_days().count() %}
4 {% block body -%}
5 The conference room {{ reservation.room.full_name }}
6 has been {% block prebooked_prefix %}{% endblock %}booked for {{ reservation.booked_for_name }}
7 {% if reservation.repeat_frequency == RepeatFrequency.NEVER -%}
8     on {{ reservation.start_dt | format_date(locale='en_GB') }} from {{ reservation.start_dt | format_time(locale='en_GB') }} to {{ reservation.end_dt | format_time(locale='en_GB') }}.
9 {%- else -%}
10     {{ RepeatMapping.get_short_name(reservation.repeat_frequency, reservation.repeat_interval) }} from {{ reservation.start_dt | format_date(locale='en_GB') }} to {{ reservation.end_dt | format_date(locale='en_GB') }} between {{ reservation.start_dt | format_time(locale='en_GB') }} and {{ reservation.end_dt | format_time(locale='en_GB') }}.
11 {%- endif %}
12 Reason: {{ reservation.booking_reason }}
13 {%- block confirmed_booking -%}
14 {%- if excluded_days %}
15     (Note that there are {{ excluded_days }} excluded days. For further info, check your reservation)
16 {%- endif %}
18 If you end up not needing this room, please cancel the booking from the
19 booking details so that the room can be booked by somebody else.
21 Please be aware that in special (rare) cases the person responsible
22 for this room may reject your booking. Should that happen you will
23 be instantly notified by e-mail.
24 {%- endblock %}
26 {%- include 'rb/emails/reservations/reservation_key_info.txt' %}
28 {%- block prebooking_warning %}{% endblock %}
30 {%- if reservation.uses_vc %}
32 This room is equipped with remote collaboration features and you marked that
33 you intend to use them. After your meeting, you will be able to give IT
34 service managers feedback about your video/phone conference by accessing this URL:
35 https://cern.ch/go/MQ8Q
36 Thanks in advance for your feedback
37 {%- endif %}
38 {%- endblock %}