UniSquat_Python/templates/free-rooms.html

46 lines
1.4 KiB
HTML
Raw Normal View History

<!DOCTYPE html>
<html lang="">
<head>
<meta charset="utf-8">
<title>UniSquat</title>
<link rel="stylesheet" type="text/css" href="../static/style.css">
</head>
<body>
<header>UniSquat</header>
<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>