This commit is contained in:
KONE SOREL 2026-01-22 17:05:27 +00:00
parent 429cb59f51
commit c3752374d0

View File

@ -98,25 +98,28 @@
$bgStatus = "bg-success"; $bgStatus = "bg-success";
$iconStatus = "fa-check-double"; $iconStatus = "fa-check-double";
$status = _("Validée"); $status = _("Validée");
$colorText = "text-light";
break; break;
case "2": case "2":
$bgStatus = "bg-warning"; $bgStatus = "bg-warning";
$iconStatus = "fa-hourglass-half"; $iconStatus = "fa-hourglass-half";
$status = _("En attente"); $status = _("En attente");
$colorText = "text-dark";
break; break;
default: default:
$bgStatus = "bg-danger"; $bgStatus = "bg-danger";
$iconStatus = "fa-ban"; $iconStatus = "fa-ban";
$status = _("Refusée"); $status = _("Refusée");
$colorText = "text-light";
break; break;
} }
?> ?>
<div class="<?= $bgStatus ?> text-white p-3 text-center"> <div class="<?= $bgStatus ?> text-white p-3 text-center">
<i class="fas <?= $iconStatus ?> fa-2x mb-2"></i> <i class="fas <?= $iconStatus ?> fa-2x mb-2"></i>
<h5 class="mb-0 text-uppercase fw-bold"><?= $status ?></h5> <h5 class="mb-0 text-uppercase fw-bold"><?= $status ?></h5>
<small class="opacity-75 text-dark"><?= _("Validé le") ?> <?= dateLang($demande['dateValidationRh']) ?></small> <small class="opacity-75 <?= $colorText ?>"><?= _("Validé le") ?> <?= dateLang($demande['dateValidationRh'], $_SESSION['lang']) ?></small>
</div> </div>
<div class="p-3 bg-light"> <div class="p-3 bg-light">