diff --git a/Js/fonctions.js b/Js/fonctions.js index bb87ffec..f96ee590 100755 --- a/Js/fonctions.js +++ b/Js/fonctions.js @@ -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(); } + }); } diff --git a/Vue/Ajaxparamlienparente/index.php b/Vue/Ajaxparamlienparente/index.php index 1ac901b8..0e3765d9 100755 --- a/Vue/Ajaxparamlienparente/index.php +++ b/Vue/Ajaxparamlienparente/index.php @@ -20,29 +20,75 @@ -
| = _("Code") ?> | -+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"; + } +?> + | ||||
| = _("Code") ?> | +- | ||||
| - " - onClick="javascript:enregistrer_modif_lien_parente();"> - | -|||||