Ajout d'un sélecteur de date.

This commit is contained in:
Antoine Waehren 2022-05-12 17:57:13 +02:00
parent c70d9b0415
commit 495da01be9
4 changed files with 31 additions and 3 deletions

View File

@ -103,6 +103,7 @@
padding: 20px;
border-radius: 10px;
transition: background 0.1s;
margin: 10px;
}
input[type="submit"]:hover {

View File

@ -0,0 +1,24 @@
<!DOCTYPE html>
<html lang="">
<head>
<meta charset="utf-8">
<title>UniSquat</title>
<link rel="stylesheet" type="text/css" href="style.css">
<meta name="viewport" content="width=300, initial-scale=1" />
</head>
<body>
{% include "base.html" %}
<main>
<form action="/app/free-rooms" method="get">
<div class="flex">
<label for="froom-date">Choisisssez une date :</label>
<input type="date" id="froom-date" name="froom-date">
</div>
<div class="flex">
<input type="submit" value="Valider">
</div>
</form>
</main>
<footer></footer>
</body>
</html>

View File

@ -9,7 +9,6 @@
<body>
{% include "base.html" %}
<main>
<div class="flex"><p>Sélectionnez des départements dans la liste :</p></div>
<form action="/app/free-rooms" method="get">
<div class="flex">

View File

@ -11,8 +11,12 @@
<main>
Départements sélectionnés :
<b>{{ depts_str }}</b>
<br>
<br>
<form action="/app/date-select" method="get">
{% 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>
<h1>Disponibles maintenant</h1>
<div class="flex-container">
<ul>