{% include "base.html" %}

Départements sélectionnés :
{{ depts_str }}

{% if date_str != "" : %} Le {{ date_str }} {% endif %}
Choisir une date
{% if favs: %}
Retirer les favoris
{% endif %}
{% if favs: %}
{% if favs_free_rooms|length>0: %}

Favoris disponibles maintenant

    {% for room in favs_free_rooms : %}
    {{ room.name }} {% if DEBUG :%}( {{ room.id }} ){% endif %}
    {% if not(room.end.hour == 23 and room.end.minute == 59 and room.end.second == 59) : %} Jusqu'à {{ frooms_disp[room.name]["end"] }} (dans {{ frooms_disp[room.name]["rtime"] }}) {% endif %}
    {% endfor %}
{% endif %} {% if favs_soon_rooms|length>0: %}

Favoris disponibles prochainement

    {% for room in favs_soon_rooms: %}
    {{ room.name }} {% if DEBUG :%}( {{ room.id }} ){% endif %}
    {% if room.end.hour == 23 and room.end.minute == 59 and room.end.second == 59 : %} À {{ frooms_disp[room.name]["start"] }} (dans {{ frooms_disp[room.name]["rtime"] }}) {% else %} De {{ frooms_disp[room.name]["start"] }} à {{ frooms_disp[room.name]["end"] }} (dans {{ frooms_disp[room.name]["rtime"] }}) {% endif %}
    {% endfor %}
{% endif %}
{% endif %}
{% if free_rooms|length>0 %}

Disponibles maintenant

    {% for room in free_rooms: %}
    {{ room.name }} {% if DEBUG :%}( {{ room.id }} ){% endif %}
    {% if not(room.end.hour == 23 and room.end.minute == 59 and room.end.second == 59) : %} Jusqu'à {{ frooms_disp[room.name]["end"] }} (dans {{ frooms_disp[room.name]["rtime"] }}) {% endif %}
    {% endfor %}
{% endif %} {% if soon_rooms|length>0 %}

Disponibles prochainement

    {% for room in soon_rooms: %}
    {{ room.name }} {% if DEBUG :%}( {{ room.id }} ){% endif %}
    {% if room.end.hour == 23 and room.end.minute == 59 and room.end.second == 59 : %} À {{ frooms_disp[room.name]["start"] }} (dans {{ frooms_disp[room.name]["rtime"] }}) {% else %} De {{ frooms_disp[room.name]["start"] }} à {{ frooms_disp[room.name]["end"] }} (dans {{ frooms_disp[room.name]["rtime"] }}) {% endif %}
    {% endfor %}
{% endif %}
{% for d in dident_list : %} {% endfor %}
{% include "footer.html" %}