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-06-15 20:23:53 +02:00
|
|
|
<div class="flex">
|
|
|
|
<p>
|
|
|
|
Départements sélectionnés : <br>
|
|
|
|
<b>{{ depts_str }}</b>
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
<div class="flex">
|
2022-05-13 16:27:21 +02:00
|
|
|
{% if date_str != "" : %}
|
|
|
|
<b>Le {{ date_str }}</b>
|
|
|
|
{% endif %}
|
2022-06-15 20:23:53 +02:00
|
|
|
</div>
|
2022-06-17 20:22:32 +02:00
|
|
|
<div class="flex" style="margin: 10px">
|
2022-06-18 13:12:43 +02:00
|
|
|
<a class="button" href='/app/date-select{{ change_date_str }}'>Choisir une date</a>
|
2022-05-14 21:24:14 +02:00
|
|
|
</div>
|
2022-06-15 23:34:38 +02:00
|
|
|
{% if favs: %}
|
2022-06-17 20:22:32 +02:00
|
|
|
<div class="flex" style="margin: 10px">
|
2022-06-17 20:05:41 +02:00
|
|
|
<a class="button" href="{{ nofavslink }}">Retirer les favoris</a>
|
|
|
|
</div>
|
2022-06-15 23:34:38 +02:00
|
|
|
{% endif %}
|
2022-06-16 09:24:24 +02:00
|
|
|
<form action="/app/free-rooms" method="get">
|
2022-06-18 13:12:43 +02:00
|
|
|
<div class="flex" style="margin: 10px">
|
|
|
|
<input style="font-size: 16px;" type="submit" value="Enregistrer les favoris">
|
|
|
|
</div>
|
2022-06-16 09:24:24 +02:00
|
|
|
{% if favs: %}
|
|
|
|
<div class="flex-pc">
|
2024-02-25 19:37:06 +01:00
|
|
|
{% if favs_free_rooms|length > 0 : %}
|
2024-02-11 18:25:16 +01:00
|
|
|
<div class="room-column">
|
2022-06-16 09:24:24 +02:00
|
|
|
<br>
|
|
|
|
<h1>Favoris disponibles maintenant</h1>
|
|
|
|
<div class="flex-container">
|
|
|
|
<ul>
|
|
|
|
{% for room in favs_free_rooms : %}
|
|
|
|
<dt>
|
|
|
|
<div class="room-row">
|
|
|
|
<div>
|
|
|
|
{{ room.name }} {% if DEBUG :%}( {{ room.id }} ){% endif %}
|
2024-02-11 18:25:16 +01:00
|
|
|
{% if not(room.noend) : %}
|
2022-06-16 11:20:40 +02:00
|
|
|
<p class=details>Jusqu'à {{ frooms_disp[room.name]["end"] }} (dans {{ frooms_disp[room.name]["rtime"] }})</p>
|
|
|
|
{% endif %}
|
2022-06-16 09:24:24 +02:00
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<input class="fav" type="checkbox" id="{{ room.id }}" name="favs" value="{{ room.id }}" checked> <label style="width:30px;height:30px" for="{{ room.id }}">⭐</label>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</dt>
|
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
{% if favs_soon_rooms|length>0: %}
|
2024-02-11 18:25:16 +01:00
|
|
|
<div class="room-column">
|
2022-06-16 09:24:24 +02:00
|
|
|
<br>
|
|
|
|
<h1>Favoris disponibles prochainement</h1>
|
|
|
|
<div class="flex-container">
|
|
|
|
<ul>
|
|
|
|
{% for room in favs_soon_rooms: %}
|
|
|
|
<dt>
|
|
|
|
<div class="room-row">
|
|
|
|
<div>
|
|
|
|
{{ room.name }} {% if DEBUG :%}( {{ room.id }} ){% endif %}
|
2024-02-11 18:25:16 +01:00
|
|
|
{% if room.noend : %}
|
2022-06-16 11:20:40 +02:00
|
|
|
<p class=details>À {{ frooms_disp[room.name]["start"] }} (dans {{ frooms_disp[room.name]["rtime"] }})</p>
|
|
|
|
{% else %}
|
|
|
|
<p class=details>De {{ frooms_disp[room.name]["start"] }} à {{ frooms_disp[room.name]["end"] }} (dans {{ frooms_disp[room.name]["rtime"] }})</p>
|
|
|
|
{% endif %}
|
2022-06-16 09:24:24 +02:00
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<input class="fav" type="checkbox" id="{{ room.id }}" name="favs" value="{{ room.id }}" checked> <label style="width:30px;height:30px" for="{{ room.id }}">⭐</label>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</dt>
|
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
2022-06-15 23:34:38 +02:00
|
|
|
{% endif %}
|
2022-06-16 09:24:24 +02:00
|
|
|
<div class="flex-pc">
|
|
|
|
{% if free_rooms|length>0 %}
|
2024-02-11 18:25:16 +01:00
|
|
|
<div class="room-column">
|
2022-06-16 09:24:24 +02:00
|
|
|
<br>
|
|
|
|
<h1>Disponibles maintenant</h1>
|
|
|
|
<div class="flex-container">
|
|
|
|
<ul>
|
|
|
|
{% for room in free_rooms: %}
|
|
|
|
<dt>
|
|
|
|
<div class="room-row">
|
|
|
|
<div>
|
|
|
|
{{ room.name }} {% if DEBUG :%}( {{ room.id }} ){% endif %}
|
2024-02-11 18:25:16 +01:00
|
|
|
{% if not room.noend : %}
|
2022-06-16 11:20:40 +02:00
|
|
|
<p class=details>Jusqu'à {{ frooms_disp[room.name]["end"] }} (dans {{ frooms_disp[room.name]["rtime"] }})</p>
|
|
|
|
{% endif %}
|
2022-06-16 09:24:24 +02:00
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<input class="fav" type="checkbox" id="{{ room.id }}" name="favs" value="{{ room.id }}"> <label style="width:30px;height:30px" for="{{ room.id }}">⭐</label>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</dt>
|
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
{% if soon_rooms|length>0 %}
|
2024-02-11 18:25:16 +01:00
|
|
|
<div class="room-column">
|
2022-06-16 09:24:24 +02:00
|
|
|
<br>
|
|
|
|
<h1>Disponibles prochainement</h1>
|
|
|
|
<div class="flex-container">
|
|
|
|
<ul>
|
|
|
|
{% for room in soon_rooms: %}
|
|
|
|
<dt>
|
|
|
|
<div class="room-row">
|
|
|
|
<div>
|
|
|
|
{{ room.name }} {% if DEBUG :%}( {{ room.id }} ){% endif %}
|
2024-02-11 18:25:16 +01:00
|
|
|
{% if room.noend : %}
|
2022-06-16 11:20:40 +02:00
|
|
|
<p class=details>À {{ frooms_disp[room.name]["start"] }} (dans {{ frooms_disp[room.name]["rtime"] }})</p>
|
|
|
|
{% else %}
|
|
|
|
<p class=details>De {{ frooms_disp[room.name]["start"] }} à {{ frooms_disp[room.name]["end"] }} (dans {{ frooms_disp[room.name]["rtime"] }})</p>
|
|
|
|
{% endif %}
|
2022-06-16 09:24:24 +02:00
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<input class="fav" type="checkbox" id="{{ room.id }}" name="favs" value="{{ room.id }}"> <label style="width:30px;height:30px" for="{{ room.id }}">⭐</label>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</dt>
|
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
2022-06-15 21:48:25 +02:00
|
|
|
<div class="flex">
|
2022-06-18 13:12:43 +02:00
|
|
|
<!-- Magie noire pour conserver les départements et date-heure séléctionnés (FIXME !!!!) -->
|
|
|
|
{% for d in dident_list : %}
|
|
|
|
<span style="display: none;"><input type="text" name="dept" value="{{ d }}"/></span>
|
|
|
|
{% endfor %}
|
|
|
|
<span style="display: none;"><input type="text" name="date" value="{{ date_uf_sav }}"/></span>
|
|
|
|
<span style="display: none;"><input type="text" name="time" value="{{ time_uf_sav }}"/></span>
|
2022-06-15 21:48:25 +02:00
|
|
|
</div>
|
|
|
|
</form>
|
2022-05-10 20:55:19 +02:00
|
|
|
</main>
|
2022-05-13 14:49:01 +02:00
|
|
|
{% include "footer.html" %}
|
2022-05-10 20:55:19 +02:00
|
|
|
</body>
|
|
|
|
</html>
|