aboutsummaryrefslogtreecommitdiff
path: root/templates/group_list.html
diff options
context:
space:
mode:
authorAlban Gruin2017-09-07 22:40:57 +0200
committerAlban Gruin2017-09-07 22:40:57 +0200
commit36b4c60aacae827b5ff8b6125bdfd70d7cf2a3a0 (patch)
treeea056fedf7819b9342e02d44b48f0dd89229deee /templates/group_list.html
parentf18b2cc4f4aa7b2ed2d7801c19ddf75acbb6abc2 (diff)
J’ai fait des trucs mais je me suis rendu compte que c’est pas
terrible, du coup je fais un commit tout pété mais ça va vite changer vous inquiétez pas.
Diffstat (limited to 'templates/group_list.html')
-rw-r--r--templates/group_list.html9
1 files changed, 9 insertions, 0 deletions
diff --git a/templates/group_list.html b/templates/group_list.html
new file mode 100644
index 0000000..d4c3579
--- /dev/null
+++ b/templates/group_list.html
@@ -0,0 +1,9 @@
+{% extends "index.html" %}
+
+{% block body %}{% for timetable in timetables %}
+ <section id="{{ timetable.slug }}">
+ <h3><a href="{{ timetable.url }}">{{ timetable.name }}</a></h3>
+ <ul>{% for group in groups %}{% if group.timetable.id == timetable.id %}
+ <li><a class="text"{% if group.weeks is not None %} href="{% url "timetable" timetable.slug group.slug %}"{% endif %}>{{ group.name }}</a> &ndash; {% for week in group.weeks %}<a href="{% url "timetable" timetable.slug group.slug week.year week|dt_week %}">{{ week|dt_prettyprint }}</a> {% empty %}<em>aucun cours</em>{% endfor %}</li>{% endif %}{% endfor %}
+ </ul>
+ </section>{% endfor %}{% endblock %}