aboutsummaryrefslogtreecommitdiff
path: root/templates/qsjps.html
blob: a166dbdb3460b15e2db9b96be2ccefcb98a0cbd3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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 %}