From 175e1c1139a77a02f3c52d77a4d2b118c2b2e578 Mon Sep 17 00:00:00 2001
From: Alban Gruin
Date: Thu, 18 Jan 2018 12:17:08 +0100
Subject: Ajout d’une template pour lister les salles trouvées
---
templates/qsjps.html | 14 ++++++++++++++
1 file changed, 14 insertions(+)
create mode 100644 templates/qsjps.html
(limited to 'templates/qsjps.html')
diff --git a/templates/qsjps.html b/templates/qsjps.html
new file mode 100644
index 0000000..73290de
--- /dev/null
+++ b/templates/qsjps.html
@@ -0,0 +1,14 @@
+{% extends "index.html" %}
+
+{% block title %}Trouver une salle – {% endblock %}
+
+{% block body %}
+
Trouver une salle entre {{ form.begin.value }} et {{ form.end.value }}
+
+ {% for room in rooms %}
+ - {{ room }}
+ {% empty %}
+ Aucune salle trouvée
+ {% endfor %}
+
+{% endblock %}
--
cgit v1.2.1
From 7a4bdfda6df3ca46f4805c145a42793cacc0809f Mon Sep 17 00:00:00 2001
From: Alban Gruin
Date: Fri, 19 Jan 2018 18:02:22 +0100
Subject: Meilleur rendu du formulaire sur appareils mobiles
---
templates/qsjps.html | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
(limited to 'templates/qsjps.html')
diff --git a/templates/qsjps.html b/templates/qsjps.html
index 73290de..bb07b60 100644
--- a/templates/qsjps.html
+++ b/templates/qsjps.html
@@ -5,10 +5,10 @@
{% block body %}
Trouver une salle entre {{ form.begin.value }} et {{ form.end.value }}
- {% for room in rooms %}
- - {{ room }}
- {% empty %}
- Aucune salle trouvée
- {% endfor %}
+ {% for room in rooms %}
+ - {{ room }}
+ {% empty %}
+ Aucune salle trouvée
+ {% endfor %}
{% endblock %}
--
cgit v1.2.1
From 9853d375d9e482c23f5fdbed9a3cf041029a92cb Mon Sep 17 00:00:00 2001
From: Alban Gruin
Date: Mon, 23 Apr 2018 15:59:21 +0200
Subject: qsjps: ajout d’un lien vers les salles dans la liste des résultats
---
templates/qsjps.html | 13 ++++++++-----
1 file changed, 8 insertions(+), 5 deletions(-)
(limited to 'templates/qsjps.html')
diff --git a/templates/qsjps.html b/templates/qsjps.html
index bb07b60..a166dbd 100644
--- a/templates/qsjps.html
+++ b/templates/qsjps.html
@@ -1,14 +1,17 @@
{% extends "index.html" %}
+{% load dt_week %}
{% block title %}Trouver une salle – {% endblock %}
{% block body %}
Trouver une salle entre {{ form.begin.value }} et {{ form.end.value }}
- {% for room in rooms %}
- - {{ room }}
- {% empty %}
- Aucune salle trouvée
- {% endfor %}
+ {% with year=form.cleaned_data.day.year week=form.cleaned_data.day|dt_week %}
+ {% for room in rooms %}
+ - {{ room }}
+ {% empty %}
+ Aucune salle trouvée
+ {% endfor %}
+ {% endwith %}
{% endblock %}
--
cgit v1.2.1