Ca commence à fonctionner
This commit is contained in:
@@ -11,49 +11,58 @@
|
||||
</head>
|
||||
<body>
|
||||
<div class="container mt-4">
|
||||
<div class="mt-4 p-5 bg-primary text-white rounded">
|
||||
<div class="mt-4 p-5 bg-danger 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" style="width: 30rem;">
|
||||
<div class="card-header">{{infosCadeaux.libelle}}</div>
|
||||
<div class="card-body">
|
||||
<form action="/confirm-reservation" method="POST">
|
||||
<input type="hidden" name="cadeau" id="cadeau-id" value="{{infosCadeaux.id}}">
|
||||
<input type="hidden" name="offrant" id="offrant-id" value="{{offrant.id}}">
|
||||
<div class="mb-3">
|
||||
<img src="{{photo}}" class="image">
|
||||
<img src="{{infosCadeaux.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>
|
||||
<input type="text" disabled id="offrant-reg" name="offrant" value="{{offrant.prenom}}">
|
||||
<p class="depenses">Pour l'instant, tu as déjà dépensé : {{totalAchats}}€</p>
|
||||
</div>
|
||||
<br>
|
||||
<div class="mb-3">
|
||||
<label for="password-reg" class="form-label">Le cadeau a-t-il déjà été acheté ?</label>
|
||||
<label 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>
|
||||
<input class="form-check-input" type="radio" name="achete" id="achete1" value="1" {{#if infosCadeaux.achete}}checked{{/if}}>
|
||||
<label class="form-check-label" for="achete1">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>
|
||||
<input class="form-check-input" type="radio" name="achete" id="achete2" value="0" {{#unless infosCadeaux.achete}}checked{{/unless}}>
|
||||
<label class="form-check-label" for="achete2">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="">
|
||||
<select name="responsableAchat" id="acheteur-reg" required class="form-select" aria-label="Default select example">
|
||||
<option value="" disabled selected>Choisir dans la liste</option>
|
||||
{{#each responsable}}
|
||||
{{#each listeResponsables}}
|
||||
<option value="{{this.id}}">{{this.prenom}}</option>
|
||||
{{/each}}
|
||||
</select>
|
||||
</div>
|
||||
<div class="mb-3">
|
||||
<label class="form-label">Le cadeau a-t-il déjà été payé ?</label>
|
||||
<div class="form-check form-check-inline">
|
||||
<input class="form-check-input" type="radio" name="paye" id="paye1" value="1" {{#if infosCadeaux.paye}}checked{{/if}}>
|
||||
<label class="form-check-label" for="paye1">Oui</label>
|
||||
</div>
|
||||
<div class="form-check form-check-inline">
|
||||
<input class="form-check-input" type="radio" name="paye" id="paye2" value="0" {{#unless infosCadeaux.paye}}checked{{/unless}}>
|
||||
<label class="form-check-label" for="paye2">Non</label>
|
||||
</div>
|
||||
</div>
|
||||
<button type="submit" class="btn btn-primary">Enregistrer</button>
|
||||
<a href="/" class="btn btn-secondary">Retour aux cadeaux</a>
|
||||
</form>
|
||||
|
||||
Reference in New Issue
Block a user