aboutsummaryrefslogtreecommitdiff
path: root/templates/timetable_email.txt
diff options
context:
space:
mode:
authorAlban Gruin2017-01-23 13:24:40 +0100
committerAlban Gruin2017-01-23 13:24:40 +0100
commitb26de0fca265cfaba7a4e7bdfafa67df7985609e (patch)
treeb5aaceaab55d6d47fb3944a62102908efc1fa91f /templates/timetable_email.txt
parent7c6b159442ee91c16201d296fe4cd11d7c724589 (diff)
Implémentation initiale de l'envoi des mails aux abonnés
Diffstat (limited to 'templates/timetable_email.txt')
-rw-r--r--templates/timetable_email.txt9
1 files changed, 9 insertions, 0 deletions
diff --git a/templates/timetable_email.txt b/templates/timetable_email.txt
new file mode 100644
index 0000000..f8a4037
--- /dev/null
+++ b/templates/timetable_email.txt
@@ -0,0 +1,9 @@
+{% autoescape off %}{{ subscription.group.timetable.name }} - {{ subscription.group.name }} - Semaine {{ week }}
+
+{% 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 %}