diff options
author | Alban Gruin | 2018-04-23 15:59:21 +0200 |
---|---|---|
committer | Alban Gruin | 2018-04-23 15:59:21 +0200 |
commit | 9853d375d9e482c23f5fdbed9a3cf041029a92cb (patch) | |
tree | 3728c6fab09bf843f00f03b764558c8de5e7f9bd /templates/qsjps.html | |
parent | ea38d01d76f695d529284c841fe9ba7f441bad1b (diff) |
qsjps: ajout d’un lien vers les salles dans la liste des résultatsqsjps
Diffstat (limited to 'templates/qsjps.html')
-rw-r--r-- | templates/qsjps.html | 13 |
1 files changed, 8 insertions, 5 deletions
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 %} <h3>Trouver une salle entre {{ form.begin.value }} et {{ form.end.value }}</h3> <ul> - {% for room in rooms %} - <li>{{ room }}</li> - {% empty %} - <p>Aucune salle trouvée</p> - {% endfor %} + {% 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 %} |