derty
This commit is contained in:
parent
a340a62cef
commit
1c90f92d3c
|
|
@ -88824,12 +88824,14 @@ function modifier_lien_parente(idLien)
|
|||
},
|
||||
success: function(data)
|
||||
{
|
||||
donnees_retour = data;
|
||||
},
|
||||
complete: function()
|
||||
{
|
||||
$('#div_maj_lien').html(donnees_retour);
|
||||
// 1. Injecter le contenu dans le conteneur de la modale
|
||||
$('#div_maj_lien').html(data);
|
||||
|
||||
// 2. Initialiser et afficher la modale Bootstrap
|
||||
var myModal = new bootstrap.Modal(document.getElementById('div_maj_lien'));
|
||||
myModal.show();
|
||||
}
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -20,29 +20,75 @@
|
|||
|
||||
<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="<?= $this->nettoyer($lienparente['codeLienParente']) ?>" disabled ></td>
|
||||
<?php
|
||||
$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";
|
||||
}
|
||||
?>
|
||||
<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-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>
|
||||
<div>
|
||||
<h5 class="modal-title fw-bold mb-0" style="color: #ffffff !important; letter-spacing: -0.5px; font-size: 1.1rem;">
|
||||
<?= _("Parametrage du lien de parenté") ?>
|
||||
</h5>
|
||||
</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>
|
||||
|
||||
<td width="8%" align="center" > <?= _("Désignation") ?> </td>
|
||||
<td> <INPUT style="font-size:10pt; text-align:center" class="form-control" TYPE="text" value="<?= $libelle ?>" disabled></td>
|
||||
<div class="modal-body p-4 bg-white">
|
||||
<input class="sr-only" type="text" id="idLien" name="idLien" value="<?= $this->nettoyer($lienparente['id']) ?>">
|
||||
|
||||
<td align="center" > <?= _("Actif") ?> </td>
|
||||
<td>
|
||||
<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>
|
||||
<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="<?= $this->nettoyer($lienparente['codeLienParente']) ?>" disabled ></td>
|
||||
|
||||
<tr>
|
||||
<td colspan="6">
|
||||
<input style="font-size:10pt;" class = "form-control btn btn-primary" type="button" value="<?= _("Enregistrer") ?>"
|
||||
onClick="javascript:enregistrer_modif_lien_parente();">
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<td width="8%" align="center" > <?= _("Désignation") ?> </td>
|
||||
<td> <INPUT style="font-size:10pt; text-align:center" class="form-control" TYPE="text" value="<?= $libelle ?>" disabled></td>
|
||||
|
||||
<td align="center" > <?= _("Actif") ?> </td>
|
||||
<td>
|
||||
<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>
|
||||
|
||||
<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>
|
||||
|
||||
<?php if($enVigueur == "1"):?>
|
||||
<button type="button" class="btn btn-danger btn-sm px-4 fw-bold shadow-sm" onclick="javascript:enregistrer_modif_lien_parente();">
|
||||
<i class="fas fa-check-circle me-1"></i> <?= _("Désactiver") ?>
|
||||
</button>
|
||||
<?php else: ?>
|
||||
<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> <?= _("Activer") ?>
|
||||
</button>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user