2024-02-12 15:36:07 +01:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="">
|
|
|
|
<head>
|
|
|
|
<meta charset="utf-8">
|
|
|
|
<title>UniSquat</title>
|
|
|
|
<link rel="stylesheet" type="text/css" href="../static/demostyle.css">
|
|
|
|
<meta name="viewport" content="width=300, initial-scale=1" />
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<main>
|
2024-02-12 16:09:28 +01:00
|
|
|
<h1><b>{{ depts_str }}</b></h1>
|
|
|
|
<p>Salles disponibles:</p>
|
|
|
|
{% if date_str != "" : %}
|
|
|
|
<p>Le {{ date_str }}</p>
|
2024-02-12 15:36:07 +01:00
|
|
|
{% endif %}
|
2024-02-12 16:09:28 +01:00
|
|
|
<div class="slide-track">
|
|
|
|
{% if favs: %}
|
|
|
|
<!-- Afficher les favoris -->
|
|
|
|
{% if favs_free_rooms|length>0: %}
|
|
|
|
{% for room in favs_free_rooms : %}
|
|
|
|
<div class="room-row">
|
|
|
|
{{ room.name }} {% if DEBUG :%}( {{ room.id }} ){% endif %}
|
|
|
|
{% if not(room.noend) : %}
|
|
|
|
<p class=details>Jusqu'à {{ frooms_disp[room.name]["end"] }} (dans {{ frooms_disp[room.name]["rtime"] }})</p>
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
{% endfor %}
|
|
|
|
{% endif %}
|
|
|
|
{% else %}
|
|
|
|
<!-- Si les favoris ne sont pas définis, afficher les salles classiques -->
|
|
|
|
{% if free_rooms|length>0 %}
|
|
|
|
{% for room in free_rooms: %}
|
|
|
|
<div class="room-row">
|
|
|
|
{{ room.name }} {% if DEBUG :%}( {{ room.id }} ){% endif %}
|
|
|
|
{% if not room.noend : %}
|
|
|
|
<p class=details>Jusqu'à {{ frooms_disp[room.name]["end"] }} (dans {{ frooms_disp[room.name]["rtime"] }})</p>
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
{% endfor %}
|
|
|
|
{% endif %}
|
|
|
|
{% endif %}
|
2024-02-12 15:36:07 +01:00
|
|
|
</div>
|
|
|
|
</main>
|
|
|
|
</body>
|
|
|
|
</html>
|