Merge branch 'main' into yass

This commit is contained in:
Yass 2026-02-16 20:20:44 +01:00 committed by GitHub
commit 40c919d6cf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
93 changed files with 6739 additions and 29 deletions

View file

@ -75,7 +75,7 @@
<li class="nav-item">
<a class="nav-link" href="index.php?ctrl=user&action=logout" title="Se déconnecter" aria-label="Se déconnecter">
Logout
Se déconnecter
</a>
</li>
</ul>
@ -84,5 +84,5 @@
</div>
</div>
</nav>
</body>
</html>
{$success_message|vardump}
{include file="views/_partial/messages.tpl"}

View file

@ -0,0 +1,14 @@
{if ($success_message != '')}
<div class="alert alert-success">
<p>{$success_message}</p>
</div>
{/if}
{if (isset($arrError) && count($arrError) > 0) }
<div class="alert alert-danger">
{foreach $arrError as $strError}
<p>{$strError}</p>
{/foreach}
</div>
{/if}

View file

@ -33,7 +33,7 @@
</div>
<div class="col-2">
<button type="submit" name="action" value="update_status" class="btn bg-success text-light"> Valider</button>
<button type="submit" name="action" value="delete_user" class="btn bg-danger text-light">Supprimer l'utilisateur</button>
<button type="submit" name="action" value="delete_user" class="btn bg-danger text-light" onclick="return confirm('Attention ! Êtes-vous sûr de vouloir supprimer cet utilisateur ? Cette action est irréversible.');">Supprimer l'utilisateur</button>
</div>
</form>
</div>

View file

@ -20,7 +20,7 @@
class="form-control"
id="keywords"
name="keywords"
placeholder="Ex: JavaScript, CSS..."
placeholder="Design, IA, back-end"
aria-describedby="keywords-help">
<small id="keywords-help" class="form-text text-muted">
Recherchez dans les titres et contenus
@ -44,7 +44,7 @@
<div class="col-6">
<fieldset>
<legend class="form-label">Type de recherche par date</legend>
<legend class="form-label">Recherche par date</legend>
<div class="form-check form-check-inline">
<input
class="form-check-input"
@ -76,7 +76,7 @@
<!-- AJOUT RECHERCHE PAR CATEGORIE -->
<div class="col-6">
<fieldset>
<legend class="form-label">Type de recherche par catégories</legend>
<legend class="form-label">Recherche par catégories</legend>
<div class="col-md-6">
<label for="author" class="form-label">Catégorie</label>
<select class="form-select" id="category" name="category">
@ -135,10 +135,10 @@
<i class="fas fa-search me-2" aria-hidden="true"></i>
Rechercher
</button>
<button type="reset" class="btn btn-secondary ms-2">
<a href="index.php?ctrl=project&action=search" class="btn btn-secondary ms-2">
<i class="fas fa-redo me-2" aria-hidden="true"></i>
Réinitialiser
</button>
</a>
</div>
</div>
</form>