fgg
This commit is contained in:
parent
cdae46c48e
commit
80e6ecef89
|
|
@ -30,7 +30,7 @@
|
|||
<div class="card-header d-flex justify-content-between align-items-center py-1">
|
||||
<h5 class="mb-0 fw-bold">
|
||||
<?= _("POLICE") ?> : <span class="text-secondary"><?= $numeroPolice; ?></span>
|
||||
<span class="ms-3 badge bg-primary text-light small fw-normal"><?= _("Demande") ?>: <?= $numeroDemandeRemboursement; ?></span>
|
||||
<span class="ms-3 badge bg-warning text-light small fw-normal"><?= _("Demande") ?>: <?= $numeroDemandeRemboursement; ?></span>
|
||||
</h5>
|
||||
</div>
|
||||
|
||||
|
|
@ -92,12 +92,26 @@
|
|||
<div class="card h-100 border-0 shadow-sm overflow-hidden">
|
||||
<div class="card-body p-0">
|
||||
<?php
|
||||
$bgStatus = ($codeEtatDemandeRemboursement == "1") ? "bg-success" : "bg-danger";
|
||||
$iconStatus = ($codeEtatDemandeRemboursement == "1") ? "fa-check-double" : "fa-ban";
|
||||
switch ($codeStatutPaiement) {
|
||||
case "1":
|
||||
$bgStatus = "bg-success";
|
||||
$iconStatus = "fa-check-double";
|
||||
break;
|
||||
|
||||
case "2":
|
||||
$bgStatus = "bg-warning";
|
||||
$iconStatus = "fa-hourglass-half";
|
||||
break;
|
||||
|
||||
default:
|
||||
$bgStatus = "bg-danger";
|
||||
$iconStatus = "fa-ban";
|
||||
break;
|
||||
}
|
||||
?>
|
||||
<div class="<?= $bgStatus ?> text-white p-3 text-center">
|
||||
<i class="fas <?= $iconStatus ?> fa-2x mb-2"></i>
|
||||
<h5 class="mb-0 text-uppercase fw-bold"><?= ($codeEtatDemandeRemboursement == "1") ? _("Demande Accordée") : _("Demande Refusée") ?></h5>
|
||||
<h5 class="mb-0 text-uppercase fw-bold"><?= ($codeStatutPaiement == "1") ? _("Demande Validée") : _("Demande Refusée") ?></h5>
|
||||
<small class="opacity-75"><?= _("Répondu le") ?> <?= dateLang($demande['dateReponseDemandeRemboursement']) ?></small>
|
||||
</div>
|
||||
<div class="p-3 bg-white">
|
||||
|
|
@ -105,14 +119,6 @@
|
|||
<div class="p-2 bg-light rounded small" style="min-height: 60px; border-left: 3px solid #ccc;">
|
||||
<?= $this->nettoyer($demande['motifReponseDemandeRemboursement']) ?>
|
||||
</div>
|
||||
<?php if($codeEtatDemandeRemboursement == "1"): ?>
|
||||
<div class="mt-3 pt-2 border-top">
|
||||
<div class="d-flex justify-content-between">
|
||||
<small class="text-muted"><?= _("Dossier n°") ?></small>
|
||||
<span class="badge bg-primary"><?= $demande['idDossier'] ?></span>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -127,24 +133,6 @@
|
|||
<span class="badge bg-secondary"><?= count($geds) ?></span>
|
||||
</div>
|
||||
<div class="card-body p-0">
|
||||
<?php if($codeEtatDemandeRemboursement == "0"): ?>
|
||||
<div class="p-3 bg-info bg-opacity-10 border-bottom">
|
||||
<form enctype="multipart/form-data" action="Remboursement" method="post" class="row g-2 align-items-center">
|
||||
<div class="col-sm-8">
|
||||
<input class="form-control form-control-sm" name="fichier_upload" type="file" required />
|
||||
</div>
|
||||
<div class="col-sm-4 d-flex gap-1">
|
||||
<button type="submit" name="submit" class="btn btn-sm btn-primary flex-grow-1">
|
||||
<i class="fas fa-cloud-upload-alt me-1"></i><?= _("Ajouter") ?>
|
||||
</button>
|
||||
<button type="button" class="btn btn-sm btn-outline-secondary" onclick="actualiser_remboursement();">
|
||||
<i class="fas fa-sync"></i>
|
||||
</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<table class="table table-hover table-sm mb-0">
|
||||
<tbody class="small">
|
||||
<?php foreach ($geds as $ged): ?>
|
||||
|
|
@ -166,13 +154,5 @@
|
|||
</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if($idDemandeRemboursement == "0"): ?>
|
||||
<div class="mt-4 pt-3 border-top text-end">
|
||||
<button class="btn btn-success px-5 shadow-sm rounded-pill" onClick="enregistrer_demande_remboursement();">
|
||||
<i class="fas fa-check-circle me-2"></i><?= _("Soumettre ma demande") ?>
|
||||
</button>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
Loading…
Reference in New Issue
Block a user