From 9e8d4c492b0178214fb1997ff46335cfd4015557 Mon Sep 17 00:00:00 2001 From: Alban Gruin Date: Sun, 22 Jan 2017 12:22:14 +0100 Subject: Affichage des jours et des horaires sur la page des emplois du temps Nouveau design inspiré par https://bestmotherfucking.website/ Utilisation des templates héritées --- templates/index.html | 65 +++++++++++++++++++++++++++++++++++++----------- templates/timetable.html | 28 +++++++++------------ 2 files changed, 62 insertions(+), 31 deletions(-) (limited to 'templates') diff --git a/templates/index.html b/templates/index.html index 7b43411..2305acf 100644 --- a/templates/index.html +++ b/templates/index.html @@ -1,22 +1,57 @@ -{% load dt_week %} - +{% load dt_week %} - celcatsanitizer + + {% block title %}{% endblock %}celcatsanitizer + -

celcatsanitizer

- {% for timetable in timetables %} -

{{ timetable.name }}

- - {% endfor %} +
+

celcatsanitizer

+
+
{% block body %}{% for timetable in timetables %} +
+

{{ timetable.name }}

+ +
{% endfor %}{% endblock %} +
+ diff --git a/templates/timetable.html b/templates/timetable.html index 23de166..f4be3a3 100644 --- a/templates/timetable.html +++ b/templates/timetable.html @@ -1,16 +1,12 @@ - - - - - {{ timetable.name }} – {{ group.name }} – celcatsanitizer - - -

celcatsanitizer

-

{{ timetable.name }} – {{ group.name }}

- - - +{% extends "index.html" %} + +{% block title %}{{ timetable.name }} – {{ group.name }} – Semaine {{ week }} – {% endblock %} + +{% block body %} +

{{ timetable.name }} – {{ 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 %}

+ +
{% endfor %}{% endblock %} -- cgit v1.2.1