56 lines
2.0 KiB
HTML
56 lines
2.0 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<title>UniSquat</title>
|
|
<link rel="stylesheet" type="text/css" href="../static/style.css">
|
|
<meta name="viewport" content="width=300, initial-scale=1" />
|
|
</head>
|
|
<body>
|
|
{% include "base.html" %}
|
|
<main>
|
|
{% if favs: %}<p>Attention, tu as des favoris de précisé, les résultats sont donc filtrés et tu ne vois pas toute les salles !</p>{% endif %}
|
|
Départements sélectionnés :
|
|
<b>{{ depts_str }}</b>
|
|
{% if date_str != "" : %}
|
|
<b>Le {{ date_str }}</b>
|
|
{% endif %}
|
|
<div class="flex">
|
|
<a class="button" href='/app/date-select{{change_date_str}}'>Choisir une date</a>
|
|
</div>
|
|
<h1>Disponibles maintenant</h1>
|
|
<div class="flex-container">
|
|
<ul>
|
|
{% for room in free_rooms : %}
|
|
{% if room.is_free : %}
|
|
<dt>{{ room.name }} {% if DEBUG :%}( {{ room.id }} ){% endif %}
|
|
{% if not(room.end.hour == 23 and room.end.minute == 59 and room.end.second == 59) : %}
|
|
<br><span class=details>Jusqu'à {{ frooms_disp[room.name]["end"] }} (dans {{ frooms_disp[room.name]["rtime"] }})</span>
|
|
{% endif %}
|
|
</dt>
|
|
{% endif %}
|
|
{% endfor %}
|
|
</ul>
|
|
</div>
|
|
<br>
|
|
<h1>Disponibles prochainement</h1>
|
|
<div class="flex-container">
|
|
<ul>
|
|
{% for room in free_rooms : %}
|
|
{% if not room.is_free : %}
|
|
<dt>{{ room.name }} {% if DEBUG :%}( {{ room.id }} ){% endif %}
|
|
{% if room.end.hour == 23 and room.end.minute == 59 and room.end.second == 59 : %}
|
|
<br><span class=details>À {{ frooms_disp[room.name]["start"] }} (dans {{ frooms_disp[room.name]["rtime"] }})</span>
|
|
{% else %}
|
|
<br><span class=details>De {{ frooms_disp[room.name]["start"] }} à {{ frooms_disp[room.name]["end"] }} (dans {{ frooms_disp[room.name]["rtime"] }})</span>
|
|
{% endif %}
|
|
</dt>
|
|
{% endif %}
|
|
{% endfor %}
|
|
</ul>
|
|
</div>
|
|
</main>
|
|
{% include "footer.html" %}
|
|
</body>
|
|
</html>
|