Fonctionnalité tri catégorie et date ok. Nettoyage du code et des commentaires de tous les models
This commit is contained in:
parent
3af2e8a056
commit
8ce49943dd
18 changed files with 381 additions and 116 deletions
|
|
@ -85,12 +85,14 @@
|
|||
<!-- USER MODIF -->
|
||||
<div class="p-3 mt-2 text-primary-emphasis bg-primary-subtle border border-primary-subtle rounded-3">
|
||||
<div class="container-fluid pt-2">
|
||||
<h2>Gestion de l'utilsateur</h2>
|
||||
<p>Changer le statut ou supprimer un utilisateur</p>
|
||||
<div class="row">
|
||||
<div class="col-2">
|
||||
<img src="./assests/img/Logo-Wordmark.svg" alt="" width="100">
|
||||
</div>
|
||||
<form method="POST">
|
||||
<div class="col-4">
|
||||
<div class="col-6">
|
||||
<select class="form-select" aria-label="Default select example" name="user_id">
|
||||
<option value="0">Choisir un utilisateur</option>
|
||||
{foreach from=$arrUserToDisplay item=user}
|
||||
|
|
@ -115,17 +117,22 @@
|
|||
<!-- catégorie modif -->
|
||||
<div class="p-3 mt-2 text-primary-emphasis bg-primary-subtle border border-primary-subtle rounded-3">
|
||||
<div class="container-fluid pt-2">
|
||||
<h2>Gestion des catégories</h2>
|
||||
<div class="row">
|
||||
<div class="col-6">
|
||||
<form method="post">
|
||||
<p>Modifier une catégorie existante</p>
|
||||
<select class="form-select" aria-label="Default select example" name="id_to_edit">
|
||||
<option value="0">Modifier un catégorie existante</option>
|
||||
<option value="0">Choix de la catégorie</option>
|
||||
{foreach from=$arrCategoryToDisplay item=category}
|
||||
<option value="{$category->getId()}">{$category->getName()}</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
<br>
|
||||
<input type="text" class="form-control" id="floatingInput" name="new_name">
|
||||
<div class="form-floating mb-3">
|
||||
<input type="text" class="form-control" id="floatingInput" name="new_name">
|
||||
<label for="floatingInput">Nouveau nom de la catégorie</label>
|
||||
</div>
|
||||
<button type="submit" class="btn bg-success text-light rounded-circle"> ✓</button>
|
||||
</form>
|
||||
<div>
|
||||
|
|
@ -139,7 +146,7 @@
|
|||
<p>Créer une nouvelle catégorie</p>
|
||||
<div class="form-floating mb-3">
|
||||
<input type="text" class="form-control" id="floatingInput" name="new_category">
|
||||
<label for="floatingInput">Créer une nouvelle catégorie</label>
|
||||
<label for="floatingInput">Nom de la nouvelle catégorie</label>
|
||||
</div>
|
||||
<div class="col-2">
|
||||
<button type="submit" class="btn bg-success text-light rounded-circle"> ✓</button>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue