From a4c1afe9cc6d76221923a6eb3ae7a9a33bcb79b7 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Metivier <jean-philippe.metivier@unicaen.fr> Date: Mon, 17 Mar 2025 17:18:00 +0100 Subject: [PATCH] =?UTF-8?q?Changement=20du=20texte=20de=20l'=C3=A9tat=20de?= =?UTF-8?q?=20validation?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- module/Agent/view/agent/agent/mes-agents.phtml | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/module/Agent/view/agent/agent/mes-agents.phtml b/module/Agent/view/agent/agent/mes-agents.phtml index c40cb2a7..f8d60321 100644 --- a/module/Agent/view/agent/agent/mes-agents.phtml +++ b/module/Agent/view/agent/agent/mes-agents.phtml @@ -214,7 +214,16 @@ $anneeCourante = (new DateTime())->format('Y'); <?php else: ?> <?php $etatActif = $inscription->getEtatActif(); ?> <?php if ($etatActif) : ?> - Validée le <?php echo $inscription->getEtatActif()->getHistoCreation()->format('d/m/Y'); ?> + <?php if ($inscription->getEtatActif()->getType()->getCode() === InscriptionEtats::ETAT_REFUSER) : ?> + Réfusée + <?php else : ?> + <?php if ($inscription->getEtatActif()->getType()->getCode() === InscriptionEtats::ETAT_DESISTEMENT) : ?> + Désistement + <?php else : ?> + Validée + <?php endif; ?> + <?php endif; ?> + le <?php echo $inscription->getEtatActif()->getHistoCreation()->format('d/m/Y'); ?> <br> par <?php echo $inscription->getEtatActif()->getHistoCreateur()->getDisplayName(); ?> @@ -349,7 +358,12 @@ $anneeCourante = (new DateTime())->format('Y'); </span> <?php endif; ?> <?php else : ?> - Validée le <?php echo $demande->getEtatActif()->getHistoCreation()->format('d/m/Y'); ?> + <?php if ($demande->getEtatActif()->getType()->getCode() === DemandeExterneEtats::ETAT_REJETEE) : ?> + Réfusée + <?php else : ?> + Validée + <?php endif; ?> + le <?php echo $demande->getEtatActif()->getHistoCreation()->format('d/m/Y'); ?> <br> par <?php echo $demande->getEtatActif()->getHistoCreateur()->getDisplayName(); ?> -- GitLab