diff --git a/mail_templates/basic/basic.html b/mail_templates/basic/basic.html new file mode 100644 index 0000000..d0d0e24 --- /dev/null +++ b/mail_templates/basic/basic.html @@ -0,0 +1,229 @@ + + + + + + Buchungsbenachrichtigung + + + +
+ Logo + English version +
+ +
+

Hallo,

+ +

+ Du hast am {{booking.created.strftime("%d.%m.%Y")}} um {{booking.created.strftime("%H:%M")}} + Uhr eine Buchung für den Raum {{ calendar_name }} vorgenommen. + Leider überschneidet sich {% if booking.is_recurring %}ein Termin Deiner + Terminserie{% else %}Dein Termin{% endif %} mit {% if colliding_bookings|length > 1 %} + mehreren Buchungen (siehe unten).{% else %}der Buchung + "{{colliding_bookings[0].name}}", die {% if colliding_bookings[0].organizer|length %} + von {% if colliding_bookings[0].organizer != booking.organizer %}<{{ colliding_bookings[0].organizer }}> + {% else %}dir selbst{% endif %}{% endif %} {% if booking.is_deprioritized %} + mit höherer Priorität angelegt wurde.{% else %}bereits am + {{colliding_bookings[0].created.strftime("%d.%m.%Y")}} um + {{colliding_bookings[0].created.strftime("%H:%M")}} Uhr vorgenommen wurde.{% endif %}{% endif %} +

+ + {% if alternatives %} +

Alternative Räume

+

+ Folgende vergleichbare Räume sind zum Zeitpunkt Deiner Buchung noch + verfügbar: +

+ +

+ Bitte buche einen anderen Raum, indem Du ihn zu Deinem bestehenden Termin + einlädst. +

+ {% else %} +

+ Leider scheint für Deinen Termin auch kein vergleichbarer Raum verfügbar zu sein. + Du kannst Deinen Termin verschieben und erneut versuchen, einen Raum zu buchen. +

+ {% endif %} + +

Terminübersicht

+ + + + + + + + + + + {% for o in overview %} + + + + + + + {% endfor %} + +
Datum & UhrzeitBezeichnungGebucht vonAnmerkung
+ {{ o.start.strftime("%d.%m.%Y") }} {% if o.start.strftime("%H:%M") != "00:00" %}{{ o.start.strftime("%H:%M") }} {% endif %}-{% if o.start.date() != o.end.date() %} {{ o.end.strftime("%d.%m.%Y") }}{% endif %} {% if o.start.strftime("%H:%M") != "00:00" and o.end.strftime("%H:%M") != "00:00" %}{{ o.end.strftime("%H:%M") }}{% endif %} + {{ o.name }}{% if o.organizer != booking.organizer %}{{ o.organizer }}{% else %}{{ o.organizer }}{% endif %} + {% if o.is_prioritized %}Priorisierte Buchung + {% elif o.is_collision %}Überschneidung + {% elif o.is_declined %}Deine abgelehnte Buchung + {% endif %} +
+ +


Liebe Grüße,

Das Raumbuchungssystem

+ +
+ +

English version

+ +

Hello,

+ +

+ On {{booking.created.strftime("%-d %B %Y")}} at {{booking.created.strftime("%-I:%M %p")}} + you booked the room {{ calendar_name }}. + Unfortunately, {% if booking.is_recurring %}one of your appointment series + {% else %}your appointment{% endif %} collides with {% if colliding_bookings|length > 1 %} + multiple bookings (see below).{% else %}the booking "{{colliding_bookings[0].name}}"{% if colliding_bookings[0].organizer|length %}, + made by {% if colliding_bookings[0].organizer != booking.organizer %}<{{ colliding_bookings[0].organizer }}>{% else %}yourself{% endif %}{% endif %} + {% if booking.is_deprioritized %} with higher priority.{% else %} on {{colliding_bookings[0].created.strftime("%-d %B %Y")}} at {{colliding_bookings[0].created.strftime("%-I:%M %p")}}. + {% endif %}{% endif %} +

+ + {% if alternatives %} +

Alternative rooms

+

+ The following comparable rooms are still available at the time of your + booking: +

+ +

+ Please book another room by inviting it to your existing appointment. +

+ {% else %} +

+ Unfortunately, there does not appear to be a comparable room available for your appointment. + You can reschedule your appointment and try again to book a room. +

+ {% endif %} + +

Appointment Overview

+ + + + + + + + + + + {% for o in overview %} + + + + + + + {% endfor %} + +
Date & TimeDescriptionBooked byNote
+ {{ o.start.strftime("%-d/%-m/%y") }} {% if o.start.strftime("%H:%M") != "00:00" %}{{ o.start.strftime("%-I:%M %p") }} {% endif %}-{% if o.start.date() != o.end.date() %} {{ o.end.strftime("%-d/%-m/%y") }}{% endif %} {% if o.start.strftime("%H:%M") != "00:00" and o.end.strftime("%H:%M") != "00:00" %}{{ o.end.strftime("%-I:%M %p") }}{% endif %} + {{ o.name }}{% if o.organizer != booking.organizer %}{{ o.organizer }}{% else %}{{ o.organizer }}{% endif %} + {% if o.is_prioritized %}Priority booking + {% elif o.is_collision %}Collision + {% elif o.is_declined %}Your declined booking + {% endif %} +
+ +


Best regards,

The room booking system

+
+ + + + \ No newline at end of file diff --git a/mail_templates/basic/basic.txt b/mail_templates/basic/basic.txt new file mode 100644 index 0000000..eceb8ee --- /dev/null +++ b/mail_templates/basic/basic.txt @@ -0,0 +1,35 @@ +Hallo, + +Du hast am {{booking.created.strftime("%d.%m.%Y")}} um {{booking.created.strftime("%X")}} Uhr eine Buchung für den Raum {{ calendar_name }} vorgenommen. Leider überschneidet sich {% if booking.is_recurring %}ein Termin Deiner Terminserie{% else %}Dein Termin{% endif %} mit {% if colliding_bookings|length > 1 %}mehreren Buchungen (siehe unten).{% else %}der Buchung "{{colliding_bookings[0].name}}", die {% if colliding_bookings[0].organizer|length %}von {% if colliding_bookings[0].organizer != booking.organizer %}<{{colliding_bookings[0].organizer}}>{% else %}dir selbst{% endif %}{% endif %}{% if booking.is_deprioritized %} mit höherer Priorität angelegt wurde.{% else %} bereits am {{colliding_bookings[0].created.strftime("%d.%m.%Y")}} um {{colliding_bookings[0].created.strftime("%X")}} Uhr vorgenommen wurde.{%endif%}{% endif %} + +{% if alternatives %}_Alternative Räume_ +Folgende vergleichbare Räume sind zum Zeitpunkt Deiner Buchung noch verfügbar:{% for a in alternatives %} +- {{ a.name }}{% endfor %} + +Bitte buche einen anderen Raum, indem Du ihn zu Deinem bestehenden Termin einlädst.{% else %}Leider scheint für Deinen Termin auch kein vergleichbarer Raum vergügbar zu sein. Du kannst Deinen Termin verschieben und erneut versuchen, einen Raum zu buchen.{% endif %} + +_Terminübersicht_{% for o in overview %} +- {{ o.start.strftime("%d.%m.%Y") }} {% if o.start.strftime("%H:%M") != "00:00" %}{{ o.start.strftime("%H:%M") }} {% endif %}-{% if o.start.date() != o.end.date() %} {{ o.end.strftime("%d.%m.%Y") }}{% endif %} {% if o.start.strftime("%H:%M") != "00:00" and o.end.strftime("%H:%M") != "00:00" %}{{ o.end.strftime("%H:%M") }}{% endif %} | "{{ o.name }}" gebucht von <{{ o.organizer }}> | {% if o.is_collision %}Überschneidung{% elif o.is_prioritized %}Priorisierte Buchung{% elif o.is_declined %}Deine abgelehnte Buchung{% endif %}{% endfor %} + + +Viele Grüße, +Das Raumbuchungssystem + +-------------------------------------- +English version + +Hello, + +On {{ booking.created.strftime("%-d %B %Y") }} at {{ booking.created.strftime("%-I:%M %p") }} you booked the room {{ calendar_name }}. Unfortunately, {% if booking.is_recurring %}one of your appointment series{% else %} your appointment{% endif %} collides with {% if colliding_bookings|length > 1 %}multiple bookings (see below).{% else %}the booking "{{ colliding_bookings[0].name }}"{% if colliding_bookings[0].organizer|length %}, made by {% if colliding_bookings[0].organizer != booking.organizer %}<{{ colliding_bookings[0].organizer }}>{% else %}yourself{% endif %}{% endif %} {% if booking.is_deprioritized %}with higher priority.{% else %}on {{ colliding_bookings[0].created.strftime("%-d %B %Y") }} at {{ colliding_bookings[0].created.strftime("%-I:%M %p") }}.{% endif %}{% endif %} + +{% if alternatives %}_Alternative rooms_ +The following comparable rooms are still available at the time of your booking:{% for a in alternatives %} +- {{ a.name }}{% endfor %} + +Please book another room by inviting it to your existing appointment.{% else %}Unfortunately, there does not appear to be a comparable room available for your appointment. You can reschedule your appointment and try again to book a room.{% endif %} + +_Appointment Overview_{% for o in overview %} +- {{ o.start.strftime("%-d/%-m/%y") }} {% if o.start.strftime("%H:%M") != "00:00" %}{{ o.start.strftime("%-I:%M %p") }} {% endif %}-{% if o.start.date() != o.end.date() %} {{ o.end.strftime("%-d/%-m/%y") }}{% endif %} {% if o.start.strftime("%H:%M") != "00:00" and o.end.strftime("%H:%M") != "00:00" %}{{ o.end.strftime("%-I:%M %p") }}{% endif %} | "{{ o.name }}" booked by <{{ o.organizer }}> | {% if o.is_collision %}Collision{% elif o.is_prioritized %}Priority booking{% elif o.is_declined %}Your declined booking{% endif %}{% endfor %} + +Best regards, +The room booking system \ No newline at end of file