qaz
This commit is contained in:
parent
11d5348682
commit
c87ecdc6d5
|
|
@ -1,74 +1,80 @@
|
|||
<?php
|
||||
|
||||
$codeLienParente = $this->nettoyer($lienparente['codeLienParente']);
|
||||
$libelle = $this->nettoyer($lienparente['libelle']);
|
||||
$enVigueur = $this->nettoyer($lienparente['enVigueur']);
|
||||
|
||||
$actif = ($enVigueur == "1") ? "Oui" : "Non";
|
||||
|
||||
if (est_anglophone()){
|
||||
$libelle = $this->nettoyer($lienparente['libelleEng']);
|
||||
$actif = ($enVigueur == "1") ? "Yes" : "No";
|
||||
}
|
||||
|
||||
$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="modal-header border-bottom-0 pb-3 pt-4 px-4"
|
||||
style="background-color: var(--color-primary); border-top-left-radius: var(--radius-lg); border-top-right-radius: var(--radius-lg);">
|
||||
<div class="d-flex align-items-center">
|
||||
<div class="icon-shape bg-warning text-white rounded-circle me-3" style="width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 4px rgba(0,0,0,0.2);">
|
||||
<i class="fas fa-edit"></i>
|
||||
<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 mb-0" style="color: #ffffff !important; letter-spacing: -0.5px; font-size: 1.1rem;">
|
||||
<?php if($enVigueur == "1"):?>
|
||||
<?= _("Désactivation") ?>
|
||||
<?php else: ?>
|
||||
<?= _("Activation") ?>
|
||||
<?php endif; ?>
|
||||
<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 class=""><?= $libelle ?></small>
|
||||
<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>
|
||||
<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']) ?>">
|
||||
|
||||
<table class="table table-responsive table-condensed" style="font-size:10pt;">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td "5%" align="center" > <?= _("Code") ?> </td>
|
||||
<td width="5%"> <INPUT style="font-size:10pt; text-align:center;" class="form-control" TYPE="text" value="<?= $codeLienParente ?>" readonly ></td>
|
||||
<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>
|
||||
|
||||
<td width="8%" align="center" > <?= _("Désignation") ?> </td>
|
||||
<td> <INPUT style="font-size:10pt; text-align:center" class="form-control" TYPE="text" value="<?= $libelle ?>" readonly></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td > <?= _("Actif") ?> </td>
|
||||
<td colspan="3">
|
||||
<SELECT style="font-size:10pt; text-align:center;" class="form-select" id="enVigueur" NAME="enVigueur" autofocus>
|
||||
<?php liste_options($enVigueurOuiNon, $lienparente['enVigueur'],true); ?>
|
||||
</SELECT>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<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">
|
||||
<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-check-circle me-1"></i> <?= _("Appliquer") ?>
|
||||
</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>
|
||||
Loading…
Reference in New Issue
Block a user