Ca commence à fonctionner

This commit is contained in:
2023-11-13 22:53:12 +01:00
parent 6feedc24c2
commit f958d0918b
5 changed files with 152 additions and 37 deletions

30
views/offrant.hbs Normal file
View File

@@ -0,0 +1,30 @@
<!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>Qui êtes-vous ?</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-danger text-white rounded">
<h1>Qui êtes-vous ?</h1>
<p>{{ message }}</p>
</div>
<input type="hidden" name="cadeau" id="cadeau-reg" value="{{cadeau}}">
<div class="card" style="width: 30rem;">
<div class="card-body">
{{#each listeOffrants}}
<div class="mb-3">
<a href="reservation?cadeau={{../cadeau}}&offrant={{this.id}}" class="btn btn-primary offrants">{{this.prenom}}</a>
</div>
{{/each}}
</div>
<a href="/" class="btn btn-secondary">Retour aux cadeaux</a>
</div>
</body>
</html>