Ajout erreur404 & 403, modif regex mdp, lien user de preview fixed
This commit is contained in:
parent
46bc4952dc
commit
a0738bb737
11 changed files with 52 additions and 10 deletions
|
|
@ -84,5 +84,4 @@
|
|||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
{$success_message|vardump}
|
||||
{include file="views/_partial/messages.tpl"}
|
||||
|
|
@ -3,21 +3,24 @@
|
|||
|
||||
{* IMAGE (partie supérieure - plus grande) *}
|
||||
<div class="ratio ratio-4x3">
|
||||
<a href="index.php?ctrl=project&action=display&id={$objProject->getId()}"></a>
|
||||
<img src=".{$objProject->getThumbnail()}"
|
||||
class="w-100 h-100 object-fit-cover"
|
||||
alt=""
|
||||
loading="lazy">
|
||||
</a>
|
||||
</div>
|
||||
|
||||
{* CONTENU (photo profil + infos) *}
|
||||
<div class="card-body p-3 bg-light">
|
||||
<div class="d-flex align-items-start gap-3">
|
||||
{* PHOTO DE PROFIL (cercle à gauche - plus grand) *}
|
||||
<a href="index.php?ctrl=user&action=user&id={$objProject->getUser_id()}">
|
||||
<img src="{$objProject->getUser_image()}"
|
||||
class="rounded-circle flex-shrink-0 border border-2 border-white"
|
||||
style="width: 64px; height: 64px; object-fit: cover; margin-top: 8px;"
|
||||
alt="Photo de profil">
|
||||
|
||||
</a>
|
||||
{* INFOS À DROITE *}
|
||||
<div class="flex-grow-1">
|
||||
<h3 class="h6 fw-bold mb-2 mt-1">{$objProject->getTitle()}</h3>
|
||||
|
|
|
|||
|
|
@ -13,9 +13,6 @@
|
|||
<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-6">
|
||||
<select class="form-select" aria-label="Default select example" name="user_id">
|
||||
|
|
@ -24,6 +21,7 @@
|
|||
<option value="{$user->getId()}">{$user->getName()} {$user->getFirstname()}</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
<br>
|
||||
<select class="form-select" aria-label="Default select example" name="new_status">
|
||||
<option value="0" selected>Modifier le statut de l'Utilisateur...</option>
|
||||
{foreach from=$arrAuthorisationToDisplay item=arrDetAuthorisation}
|
||||
|
|
@ -31,6 +29,7 @@
|
|||
{/foreach}
|
||||
</select>
|
||||
</div>
|
||||
<br>
|
||||
<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" onclick="return confirm('Attention ! Êtes-vous sûr de vouloir supprimer cet utilisateur ? Cette action est irréversible.');">Supprimer l'utilisateur</button>
|
||||
|
|
@ -63,7 +62,6 @@
|
|||
<div>
|
||||
</div>
|
||||
<br>
|
||||
<br>
|
||||
<div class="row">
|
||||
<!-- creation cat-->
|
||||
<div class="col-6">
|
||||
|
|
|
|||
9
views/error_403.tpl
Normal file
9
views/error_403.tpl
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
{extends file="views/layout.tpl"}
|
||||
|
||||
{block name="content"}
|
||||
<div class="text-center">
|
||||
<h1 class="display-1">Erreur 403</h1>
|
||||
<h2 class="display-3">Vous n'êtes pas autorisé à accéder à cette page !</h2>
|
||||
<img class="img-fluid" src="assests/img/error403.jpg">
|
||||
</div>
|
||||
{/block}
|
||||
9
views/error_404.tpl
Normal file
9
views/error_404.tpl
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
{extends file="views/layout.tpl"}
|
||||
|
||||
{block name="content"}
|
||||
<div class="text-center">
|
||||
<h1 class="display-1">Erreur 404</h1>
|
||||
<h2 class="display-3">Cette page n'existe pas !</h2>
|
||||
<img class="img-fluid" src="assests/img/error404.webp">
|
||||
</div>
|
||||
{/block}
|
||||
Loading…
Add table
Add a link
Reference in a new issue