diff options
author | Alban Gruin | 2017-01-25 14:34:55 +0100 |
---|---|---|
committer | Alban Gruin | 2017-01-25 14:34:55 +0100 |
commit | 1aa8092ae3fab47e78a02dabb6564aff4a981e04 (patch) | |
tree | b26d2e2d14ac5a16f63986793f45017be741a4ca /templates/mail/mail_timetable.txt | |
parent | a4a3aa91a9eacf0f67442d79d8aaee01b7a1256b (diff) |
Déplacement et renommage des templates des mails
Diffstat (limited to 'templates/mail/mail_timetable.txt')
-rw-r--r-- | templates/mail/mail_timetable.txt | 6 |
1 files changed, 6 insertions, 0 deletions
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 %} |