From c75b5a51e66365c588e91068e4c77c738a77d69c Mon Sep 17 00:00:00 2001 From: Dorian Lesbre <dorian.lesbre@gmail.com> Date: Sun, 21 Mar 2021 14:58:49 +0100 Subject: [PATCH] Added uncommited email templates --- home/templates/email/orga.html | 12 ++++++++++++ home/templates/email/user.html | 17 +++++++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 home/templates/email/orga.html create mode 100644 home/templates/email/user.html diff --git a/home/templates/email/orga.html b/home/templates/email/orga.html new file mode 100644 index 0000000..6cd6a0e --- /dev/null +++ b/home/templates/email/orga.html @@ -0,0 +1,12 @@ +{% autoescape off %} +Bonjour {{ activity.host_name }}, + +Voici la liste des participant·e·s inscrit·e·s à votre activité {{ activity }}{% if activity.start and activity.room %} (le {{ activity.start|date:"l à H:i" }} en {{ activity.room }}){% endif %} : +{% for participant in participants %} +- {{ participant.participant }} {{ participant.participant.user.email }}{% empty %} +Aucun participant inscrit.{% endfor %} + +-- +L'équipe Interludes +{% if settings.contact_email %}Pour nous contacter, envoyer un email à {{ settings.contact_email }}{% endif %} +{% endautoescape %} \ No newline at end of file diff --git a/home/templates/email/user.html b/home/templates/email/user.html new file mode 100644 index 0000000..7b85980 --- /dev/null +++ b/home/templates/email/user.html @@ -0,0 +1,17 @@ +{% autoescape off %} +Bonjour {{ user.first_name }} {{ user.last_name }}, + +Les inscriptions aux Interludes sont fermées et la répartition des activités à été effectuée. +{% if requested_activities_nb %} +Vous avez obtenu {{ activities|length }} activité(s) (sur {{ requested_activities_nb }} souhaitée(s)). +{% for act in activities %} +- {{ act.activity.title }}{% if act.activity.start and act.activity.room %} (le {{ act.activity.start|date:"l à H:i" }} en {{ act.activity.room }}){% endif %}{% endfor %}{% if activities %} + +Cette liste est également disponible sur la page "Mon compte" du site: {% url "accounts:profile" %}.{% endif %} +{% else %} +Vous n'aviez demandé aucune activité. +{% endif %} +-- +L'équipe Interludes +{% if settings.contact_email %}Pour nous contacter, envoyer un email à {{ settings.contact_email }}{% endif %} +{% endautoescape %} -- GitLab