2022-05-10 20:55:19 +02:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="">
|
|
|
|
<head>
|
|
|
|
<meta charset="utf-8">
|
2022-05-12 15:32:12 +02:00
|
|
|
<title>UniSquat</title>
|
2022-05-10 20:55:19 +02:00
|
|
|
<link rel="stylesheet" type="text/css" href="../static/style.css">
|
2022-05-12 14:27:16 +02:00
|
|
|
<meta name="viewport" content="width=300, initial-scale=1" />
|
2022-05-10 20:55:19 +02:00
|
|
|
</head>
|
|
|
|
<body>
|
2022-05-12 14:27:16 +02:00
|
|
|
{% include "base.html" %}
|
2022-05-10 20:55:19 +02:00
|
|
|
<main>
|
2022-05-12 16:53:02 +02:00
|
|
|
Départements sélectionnés :
|
|
|
|
<b>{{ depts_str }}</b>
|
2022-05-13 16:27:21 +02:00
|
|
|
{% if date_str != "" : %}
|
|
|
|
<b>Le {{ date_str }}</b>
|
|
|
|
{% endif %}
|
2022-05-14 21:24:14 +02:00
|
|
|
<div class="flex">
|
|
|
|
<button onClick="location.href='/app/date-select{{change_date_str}}'">Choisir une date</button>
|
|
|
|
</div>
|
2022-05-12 16:53:02 +02:00
|
|
|
<h1>Disponibles maintenant</h1>
|
2022-05-10 20:55:19 +02:00
|
|
|
<div class="flex-container">
|
|
|
|
<ul>
|
2022-05-12 16:53:02 +02:00
|
|
|
{% for room in free_rooms : %}
|
2022-05-10 20:55:19 +02:00
|
|
|
{% if room.is_free : %}
|
2022-06-15 12:46:22 +02:00
|
|
|
<dt>{{ room.name }}
|
2022-05-10 20:55:19 +02:00
|
|
|
{% if not(room.end.hour == 23 and room.end.minute == 59 and room.end.second == 59) : %}
|
2022-05-12 16:53:02 +02:00
|
|
|
<br><span class=details>Jusqu'à {{ frooms_disp[room.name]["end"] }} (dans {{ frooms_disp[room.name]["rtime"] }})</span>
|
2022-05-10 20:55:19 +02:00
|
|
|
{% endif %}
|
|
|
|
</dt>
|
|
|
|
{% endif %}
|
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
<br>
|
2022-05-12 16:53:02 +02:00
|
|
|
<h1>Disponibles prochainement</h1>
|
2022-05-10 20:55:19 +02:00
|
|
|
<div class="flex-container">
|
|
|
|
<ul>
|
2022-05-12 16:53:02 +02:00
|
|
|
{% for room in free_rooms : %}
|
2022-05-10 20:55:19 +02:00
|
|
|
{% if not room.is_free : %}
|
|
|
|
<dt>{{ room.name }}
|
|
|
|
{% if room.end.hour == 23 and room.end.minute == 59 and room.end.second == 59 : %}
|
2022-05-12 16:53:02 +02:00
|
|
|
<br><span class=details>À {{ frooms_disp[room.name]["start"] }} (dans {{ frooms_disp[room.name]["rtime"] }})</span>
|
2022-05-10 20:55:19 +02:00
|
|
|
{% else %}
|
2022-05-12 16:53:02 +02:00
|
|
|
<br><span class=details>De {{ frooms_disp[room.name]["start"] }} à {{ frooms_disp[room.name]["end"] }} (dans {{ frooms_disp[room.name]["rtime"] }})</span>
|
2022-05-10 20:55:19 +02:00
|
|
|
{% endif %}
|
|
|
|
</dt>
|
|
|
|
{% endif %}
|
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</main>
|
2022-05-13 14:49:01 +02:00
|
|
|
{% include "footer.html" %}
|
2022-05-10 20:55:19 +02:00
|
|
|
</body>
|
|
|
|
</html>
|