47 lines
1.5 KiB
HTML
47 lines
1.5 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>
|
|
Les salles suivantes sont disponibles actuellement :
|
|
<div class="flex-container">
|
|
<ul>
|
|
{% for room in available_rooms : %}
|
|
{% if room.is_free : %}
|
|
<dt>{{ room.name }}
|
|
{% if not(room.end.hour == 23 and room.end.minute == 59 and room.end.second == 59) : %}
|
|
<br><span class=details>Occupée à : {{ room.end.hour + hdelay }}:{{ room.end.minute }}</span>
|
|
{% endif %}
|
|
</dt>
|
|
{% endif %}
|
|
{% endfor %}
|
|
</ul>
|
|
</div>
|
|
<br>
|
|
Les salles suivantes seront disponibles prochainement :
|
|
<div class="flex-container">
|
|
<ul>
|
|
{% for room in available_rooms : %}
|
|
{% if not room.is_free : %}
|
|
<dt>{{ room.name }}
|
|
{% if room.end.hour == 23 and room.end.minute == 59 and room.end.second == 59 : %}
|
|
<br><span class=details>Libre à : {{ room.start.hour + hdelay }}:{{ room.start.minute + hdelay }}</span>
|
|
{% else %}
|
|
<br><span class=details>Libre de {{ room.start.hour + hdelay }}:{{ room.start.minute + hdelay }} à {{ room.end.hour + hdelay }}:{{ room.end.minute + hdelay }}</span>
|
|
{% endif %}
|
|
</dt>
|
|
{% endif %}
|
|
{% endfor %}
|
|
</ul>
|
|
</div>
|
|
</main>
|
|
<footer></footer>
|
|
</body>
|
|
</html>
|