aboutsummaryrefslogtreecommitdiff
path: root/templates/qsjps.html
diff options
context:
space:
mode:
authorAlban Gruin2018-04-23 16:20:38 +0200
committerAlban Gruin2018-04-23 16:20:38 +0200
commit63ceb7ff232cd4015ae148bec31c6d72d9239c19 (patch)
tree9aee056480b5fae0c97f5e1c8be4ab1358602926 /templates/qsjps.html
parentaf055dbf703af0eca03862194de1a0f34ac1fcc5 (diff)
parent9853d375d9e482c23f5fdbed9a3cf041029a92cb (diff)
Merge branch 'qsjps' into futur
Diffstat (limited to 'templates/qsjps.html')
-rw-r--r--templates/qsjps.html17
1 files changed, 17 insertions, 0 deletions
diff --git a/templates/qsjps.html b/templates/qsjps.html
new file mode 100644
index 0000000..a166dbd
--- /dev/null
+++ b/templates/qsjps.html
@@ -0,0 +1,17 @@
+{% extends "index.html" %}
+{% load dt_week %}
+
+{% block title %}Trouver une salle – {% endblock %}
+
+{% block body %}
+ <h3>Trouver une salle entre {{ form.begin.value }} et {{ form.end.value }}</h3>
+ <ul>
+ {% with year=form.cleaned_data.day.year week=form.cleaned_data.day|dt_week %}
+ {% for room in rooms %}
+ <li><a href="{% url "room-timetable" room.slug year week %}">{{ room }}</li>
+ {% empty %}
+ <p>Aucune salle trouvée</p>
+ {% endfor %}
+ {% endwith %}
+ </ul>
+{% endblock %}