Correction de la correction

This commit is contained in:
stiti 2024-05-25 03:25:50 +02:00
parent 0fe46ae2fb
commit ce612f2b55

View File

@ -53,26 +53,26 @@
<?php endif; ?> <?php endif; ?>
</div> </div>
<div class="comment-form">
<?php if ($this->session->userdata('user_id')): ?> <?php if ($this->session->userdata('user_id')): ?>
<h2>Ajouter un commentaire</h2> <div class="comment-form">
<form action="<?php echo site_url('utilisateur/ajouter_avis'); ?>" method="post"> <h2>Ajouter un commentaire</h2>
<textarea name="commentaire" rows="3" placeholder="Écrivez votre commentaire ici..." required></textarea> <form action="<?php echo site_url('utilisateur/ajouter_avis'); ?>" method="post">
<!-- Ajout des étoiles pour la notation --> <textarea name="commentaire" rows="3" placeholder="Écrivez votre commentaire ici..." required></textarea>
<h3>Note :</h3> <!-- Ajout des étoiles pour la notation -->
<div class="rating"> <h3>Note :</h3>
<input type="radio" id="star1" name="rating" value="1" checked><label for="star1">&#9733;</label> <div class="rating">
<input type="radio" id="star2" name="rating" value="2"><label for="star2">&#9733;</label> <input type="radio" id="star1" name="rating" value="1" checked><label for="star1">&#9733;</label>
<input type="radio" id="star3" name="rating" value="3"><label for="star3">&#9733;</label> <input type="radio" id="star2" name="rating" value="2"><label for="star2">&#9733;</label>
<input type="radio" id="star4" name="rating" value="4"><label for="star4">&#9733;</label> <input type="radio" id="star3" name="rating" value="3"><label for="star3">&#9733;</label>
<input type="radio" id="star5" name="rating" value="5"><label for="star5">&#9733;</label> <input type="radio" id="star4" name="rating" value="4"><label for="star4">&#9733;</label>
</div> <input type="radio" id="star5" name="rating" value="5"><label for="star5">&#9733;</label>
<!-- Champ caché pour stocker la valeur de notation --> </div>
<input type="hidden" name="notation" id="notation"> <!-- Champ caché pour stocker la valeur de notation -->
<button type="submit">Ajouter</button> <input type="hidden" name="notation" id="notation">
</form> <button type="submit">Ajouter</button>
</form>
</div>
<?php endif; ?> <?php endif; ?>
</div>
<div class="gallery"> <div class="gallery">
<h2>Ils nous ont fait confiance</h2> <h2>Ils nous ont fait confiance</h2>