newdesigngestionnaire/Vue/Ajaxparamlienparente/index.php
2026-04-03 17:37:42 +00:00

79 lines
4.6 KiB
PHP
Executable File

<?php
$codeLienParente = $this->nettoyer($lienparente['codeLienParente']);
$libelle = $this->nettoyer($lienparente['libelle']);
$enVigueur = $this->nettoyer($lienparente['enVigueur']);
if (est_anglophone()){
$libelle = $this->nettoyer($lienparente['libelleEng']);
}
?>
<div class="modal-dialog modal-dialog-centered shadow-lg">
<div class="modal-content border-0">
<div class="modal-header border-bottom-0 pb-3 pt-4 px-4 border-start border-warning border-5" style="background-color: #212e53; border-top-left-radius: var(--radius-md); border-top-right-radius: var(--radius-md);">
<div class="d-flex align-items-center">
<div class="icon-shape bg-white text-primary rounded-circle me-3 d-flex align-items-center justify-content-center shadow-sm"
style="width: 40px; height: 40px; color: var(--color-primary) !important;">
<i class="fas fa-toggle-on"></i>
</div>
<div>
<h5 class="modal-title fw-bold text-uppercase mb-0"
style="color: #ffffff !important; letter-spacing: 0.5px; font-size: 1rem; font-family: 'Syne', sans-serif;">
<?php if($enVigueur == "1"):?>
<?= _("Désactivation du lien") ?>
<?php else: ?>
<?= _("Activation du lien") ?>
<?php endif; ?>
</h5>
<small style="color: rgba(255,255,255,0.8); font-family: 'DM Sans', sans-serif;">
<?= $libelle ?>
</small>
</div>
</div>
<button type="button" class="btn-close btn-close-white" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body p-4 bg-white">
<input class="sr-only" type="text" id="idLien" name="idLien" value="<?= $this->nettoyer($lienparente['id']) ?>">
<div class="p-3 mb-4 rounded-3 border" style="background-color: #faf9f8; border-color: var(--border-light) !important;">
<div class="row g-3">
<div class="col-4">
<label class="form-label small fw-bold text-muted text-uppercase mb-1" style="font-size: 0.65rem;"><?= _("Code") ?></label>
<div class="h6 mb-0 fw-bold text-dark"><?= $codeLienParente ?></div>
</div>
<div class="col-8 border-start" style="border-color: var(--border-light) !important;">
<label class="form-label small fw-bold text-muted text-uppercase mb-1" style="font-size: 0.65rem;"><?= _("Désignation") ?></label>
<div class="h6 mb-0 fw-bold text-dark"><?= $libelle ?></div>
</div>
</div>
</div>
<div class="row">
<div class="col-12">
<label class="form-label small fw-bold text-muted text-uppercase mb-2" style="font-size: 0.65rem;">
<i class="fas fa-check-circle me-1 text-primary"></i> <?= _("Statut de vigeur") ?>
</label>
<select class="form-select fw-bold shadow-none" id="enVigueur" name="enVigueur"
style="border-color: var(--border-light); color: var(--text-main);" autofocus>
<?php liste_options($enVigueurOuiNon, $lienparente['enVigueur'], true); ?>
</select>
<div class="form-text small text-muted mt-2">
<?= _("La modification impactera immédiatement l'utilisation de ce lien de parenté.") ?>
</div>
</div>
</div>
</div>
<div class="modal-footer border-0 p-3"
style="background-color: #faf9f8; border-bottom-left-radius: var(--radius-lg); border-bottom-right-radius: var(--radius-lg);">
<button type="button" class="btn btn-light btn-sm px-3 fw-bold"
style="color: var(--text-muted); border: 1px solid var(--border-light);" data-bs-dismiss="modal">
<?= _("Annuler") ?>
</button>
<button type="button" class="btn btn-primary btn-sm px-4 fw-bold shadow-sm" onclick="javascript:enregistrer_modif_lien_parente();">
<i class="fas fa-save me-1"></i> <?= _("Appliquer") ?>
</button>
</div>
</div>
</div>