Files
WishList/views/reservation.hbs
2023-11-12 18:24:41 +01:00

65 lines
3.2 KiB
Handlebars

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Réserver un des cadeaux</title>
<link rel="stylesheet" href="/styles.css">
<link href="/css/bootstrap.min.css" rel="stylesheet">
</head>
</head>
<body>
<div class="container mt-4">
<div class="mt-4 p-5 bg-primary text-white rounded">
<h1>Réserver ce cadeau</h1>
<p>{{ message }}</p>
</div>
</div>
<div class="container mt-4">
<input type="hidden" name="id" id="id-reg" value="{{id}}">
<div class="card" style="width: 30rem;">
<div class="card-header">{{libelle}}</div>
<div class="card-body">
<form action="/confirm-reservation" method="POST">
<div class="mb-3">
<img src="{{photo}}" class="image">
</div>
<div class="mb-3">
<label for="responsable-reg" class="form-label">Qui es-tu ?</label>
<select name="responsable" id="responsable-reg" class="">
<option value="" disabled selected>Choisir dans la liste</option>
{{#each responsable}}
<option value="{{this.id}}">{{this.prenom}}</option>
{{/each}}
</select>
</div>
<div class="mb-3">
<label for="password-reg" class="form-label">Le cadeau a-t-il déjà été acheté ?</label>
<div class="form-check form-check-inline">
<input class="form-check-input" type="radio" name="inlineRadioOptions" id="inlineRadio1" value="1">
<label class="form-check-label" for="inlineRadio1">Oui</label>
</div>
<div class="form-check form-check-inline">
<input class="form-check-input" type="radio" name="inlineRadioOptions" id="inlineRadio2" value="0" checked>
<label class="form-check-label" for="inlineRadio2">Non</label>
</div>
</div>
<div class="mb-3">
<label for="responsable-reg" class="form-label">Qui doit s'occuper de l'achat ?</label>
<select name="acheteur" id="acheteur-reg" class="">
<option value="" disabled selected>Choisir dans la liste</option>
{{#each responsable}}
<option value="{{this.id}}">{{this.prenom}}</option>
{{/each}}
</select>
</div>
<button type="submit" class="btn btn-primary">Enregistrer</button>
<a href="/" class="btn btn-secondary">Retour aux cadeaux</a>
</form>
</div>
</div>
</div>
</body>
</html>