From 1aa8092ae3fab47e78a02dabb6564aff4a981e04 Mon Sep 17 00:00:00 2001 From: Alban Gruin Date: Wed, 25 Jan 2017 14:34:55 +0100 Subject: Déplacement et renommage des templates des mails --- templates/mail/mail_confirm.txt | 9 +++++++++ templates/mail/mail_footer.txt | 1 + templates/mail/mail_timetable.txt | 6 ++++++ 3 files changed, 16 insertions(+) create mode 100644 templates/mail/mail_confirm.txt create mode 100644 templates/mail/mail_footer.txt create mode 100644 templates/mail/mail_timetable.txt (limited to 'templates/mail') diff --git a/templates/mail/mail_confirm.txt b/templates/mail/mail_confirm.txt new file mode 100644 index 0000000..77849a0 --- /dev/null +++ b/templates/mail/mail_confirm.txt @@ -0,0 +1,9 @@ +Vous avez été inscrit sur l'emploi du temps {{ group.timetable.name }} - {{ group.name }} + +Si pour valider l'abonnement, suivez ce lien : {% url "confirm" token %} + +Si vous pensez que vous avez été inscrit par erreur, suivez ce lien : {% url "cancel" token %} + +Vous ne recevrez aucun mail tant que vous n'avez pas validé votre abonnement. + +{% include "mail/mail_footer.txt" %} diff --git a/templates/mail/mail_footer.txt b/templates/mail/mail_footer.txt new file mode 100644 index 0000000..004abe5 --- /dev/null +++ b/templates/mail/mail_footer.txt @@ -0,0 +1 @@ +{# Pour vous désinscrire de cet emploi du temps, suivez ce lien : {% url "cancel" token %} #}Pour contacter l'administrateur du service, envoyez un mail à cette adresse : {{ admins|first|last }} diff --git a/templates/mail/mail_timetable.txt b/templates/mail/mail_timetable.txt new file mode 100644 index 0000000..dcc07d1 --- /dev/null +++ b/templates/mail/mail_timetable.txt @@ -0,0 +1,6 @@ +{% autoescape off %}{% for day in courses %}{{ day.0.begin|date:"l j F o" }} - de {{ day.0.begin|date:"H:i" }} à {% with day|last as last %}{{ last.end|date:"H:i" }}{% endwith %} +{% for course in day %} + * {{ course.name }}, de {{ course.begin|date:"H:i" }} à {{ course.end|date:"H:i" }}{% if course.rooms.all|length > 0 %} + Salle{% if course.rooms.all|length > 1 %}s{% endif %} {% for room in course.rooms.all %}{{ room }} {% endfor %}{% endif %} +{% endfor %} +{% endfor %}{% endautoescape %} -- cgit v1.2.1