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 14:49:01 +02:00
|
|
|
<form class="flex" action="/app/date-select" method="get">
|
2022-05-12 17:57:13 +02:00
|
|
|
{% for d in dident_list : %}
|
|
|
|
<span style="display: none;"><input type="text" name="dept" value="{{ d }}"/></span>
|
|
|
|
{% endfor %}
|
|
|
|
<input type="submit" value="Choisir une date"/>
|
|
|
|
</form>
|
2022-05-12 22:30:10 +02:00
|
|
|
<div class="flex">
|
|
|
|
<button onClick="location.href='/app'" type="button">Choisir des départements</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 : %}
|
|
|
|
<dt>{{ room.name }}
|
|
|
|
{% 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>
|