diff options
author | Alban Gruin | 2018-04-25 09:34:34 +0200 |
---|---|---|
committer | Alban Gruin | 2018-04-25 09:34:34 +0200 |
commit | 60e3b389d065746d61906f91327867bfd5ed582c (patch) | |
tree | 687f2e221bba23605a4db5797dbbaa902b4d209c /templates | |
parent | 8a533b6f86dc3315c3359f9e0df7af360b698a48 (diff) |
qsjps: abstraction et navigation de la template
Diffstat (limited to 'templates')
-rw-r--r-- | templates/qsjps.html | 17 |
1 files changed, 4 insertions, 13 deletions
diff --git a/templates/qsjps.html b/templates/qsjps.html index a166dbd..9fbdf8a 100644 --- a/templates/qsjps.html +++ b/templates/qsjps.html @@ -2,16 +2,7 @@ {% 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 %} +{% block pagetitle %}Trouver une salle entre {{ form.begin.value }} et {{ form.end.value }}</h3>{% endblock %} +{% block url %}{% url "room-timetable" element.slug form.cleaned_data.day.year form.cleaned_data.day|dt_week %}{% endblock %} +{% block navigation %}<a href="{% url "rooms" %}">Retour à la liste des salles</a> – +<a href="{% url "qsjps" %}">Nouvelle recherche</a>{% endblock %} |