83 lines
4.6 KiB
PHP
Executable File
83 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 p-2 border-0 shadow-none d-flex align-items-center justify-content-center"
|
|
data-bs-dismiss="modal" aria-label="Close"
|
|
style="background: transparent; transition: transform 0.2s ease;">
|
|
<i class="fas fa-times text-white fs-4"></i>
|
|
</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 bg-primary-ghost">
|
|
<div class="row g-3">
|
|
<div class="col-4">
|
|
<label class="form-label fw-bold text-muted mb-1" ><?= _("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 fw-bold text-muted mb-1" ><?= _("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 fw-bold text-muted mb-2" >
|
|
<i class="fas fa-check-circle me-1 text-warning"></i> <?= _("Statut de vigeur") ?>
|
|
</label>
|
|
<select class="form-select fw-bold shadow-none border-warning" id="enVigueur" name="enVigueur" autofocus>
|
|
<?php liste_options($enVigueurOuiNon, $lienparente['enVigueur'], true); ?>
|
|
</select>
|
|
<div class="form-text small text-muted mt-2">
|
|
<i class="fas fa-info-circle me-1 text-info"></i>
|
|
<?= _("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-warning 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>
|