From a6d14aa482e322fcd1946ea2541272477b4f8c6b Mon Sep 17 00:00:00 2001 From: Alban Gruin Date: Sat, 21 Apr 2018 15:20:01 +0200 Subject: Ajout d’une liste complète des groupes et d’une liste des semaines --- templates/group_list.html | 7 ++++++- templates/group_weeks_list.html | 8 ++++++++ templates/groups_all_list.html | 6 ++++++ templates/index.html | 2 +- templates/room_weeks_list.html | 7 +++++++ templates/timetable.html | 10 ++++++++-- 6 files changed, 36 insertions(+), 4 deletions(-) create mode 100644 templates/group_weeks_list.html create mode 100644 templates/groups_all_list.html create mode 100644 templates/room_weeks_list.html (limited to 'templates') diff --git a/templates/group_list.html b/templates/group_list.html index 35536b6..9c9a7fc 100644 --- a/templates/group_list.html +++ b/templates/group_list.html @@ -10,5 +10,10 @@
{% block empty %}Aucun emploi du temps à afficher{% endblock %}
{% endfor %} diff --git a/templates/room_weeks_list.html b/templates/room_weeks_list.html new file mode 100644 index 0000000..6a4c3d9 --- /dev/null +++ b/templates/room_weeks_list.html @@ -0,0 +1,7 @@ +{% extends "group_weeks_list.html" %} +{% load dt_week %} + +{% block title %}Semaines de la salle {{ room }} – {% endblock %} +{% block pagetitle %}Semaines de la salle {{ room }}{% endblock %} +{% block url %}{% url "room-timetable" room.slug element.year element|dt_week %}{% endblock %} +{% block navigation %}Liste des salles{% endblock %} diff --git a/templates/timetable.html b/templates/timetable.html index 4bb3e10..a6dc1ab 100644 --- a/templates/timetable.html +++ b/templates/timetable.html @@ -31,15 +31,21 @@ Semaine {{ last_week|dt_week }} - {% if next_week is not None %} – {% endif %} + – {% endif %} {% if next_week is not None %} Semaine {{ next_week|dt_week }} + – {% endif %} {% if group_mode %} - {% if last_week is not None or next_week is not None %}