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>
|
||||
|
|
|
|||
|
|
@ -9,16 +9,17 @@
|
|||
directement en contact avec les entreprises.</p>
|
||||
</section>
|
||||
|
||||
<!--filtres de "recherche"-->
|
||||
<section class="container mt-5 p-5 d-flex flex-column align-items-center text-center">
|
||||
<div>
|
||||
<form method="GET">
|
||||
<button type="submit" class="btn btn-primary" value="">catégorie 1</button>
|
||||
<button type="submit" class="btn btn-primary" value="">catégorie 2</button>
|
||||
<button type="submit" class="btn btn-primary" value="">Plus de 6 mois</button>
|
||||
<button type="reset" class="btn btn-primary" value="">Tout</button>
|
||||
</form>
|
||||
</div>
|
||||
<div class="mb-4">
|
||||
<form method="GET" action="index.php">
|
||||
<input type="hidden" name="ctrl" value="project">
|
||||
<input type="hidden" name="action" value="home">
|
||||
<button type="submit" name="filter_cat" value="1" class="btn btn-primary">Design</button>
|
||||
<button type="submit" name="filter_cat" value="2" class="btn btn-primary">Développement Web</button>
|
||||
<button type="submit" name="filter_old" value="true" class="btn btn-primary">Plus de 6 mois</button>
|
||||
<a href="index.php?ctrl=project&action=home" class="btn btn-primary">Tout</a>
|
||||
</form>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="container" aria-label="Articles récents">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue