diff --git a/Js/fonctions.js b/Js/fonctions.js index b6ffa38a..4f09052b 100755 --- a/Js/fonctions.js +++ b/Js/fonctions.js @@ -88533,25 +88533,19 @@ function filtreproduitexclusion(){ } -function modifier_lien_parente(idLien) -{ - donnees = 'idLien='+idLien; - - $.ajax({ - url: $("#racineWeb").val()+"Ajaxparamlienparente/", - type : 'post', - data: donnees, - error: function(errorData) { - }, - success: function(data) - { - donnees_retour = data; - }, - complete: function() - { - $('#div_maj_lien').html(donnees_retour); - } - }); +function modifier_lien_parente(idLien) { + let donnees = 'idLien=' + idLien; + $.ajax({ + url: $("#racineWeb").val() + "Ajaxparamlienparente/", + type: 'post', + data: donnees, + success: function(data) { + $('#div_maj_lien').html(data); + // Déclenchement de la modale + var myModal = new bootstrap.Modal(document.getElementById('div_maj_lien')); + myModal.show(); + } + }); } function enregistrer_modif_lien_parente() diff --git a/Vue/Ajaxparamlienparente/index.php b/Vue/Ajaxparamlienparente/index.php index 1ac901b8..4145848b 100755 --- a/Vue/Ajaxparamlienparente/index.php +++ b/Vue/Ajaxparamlienparente/index.php @@ -1,48 +1,69 @@ 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"; - } - + $libelle = $this->nettoyer($lienparente['libelle']); + $enVigueur = $this->nettoyer($lienparente['enVigueur']); + if (est_anglophone()){ + $libelle = $this->nettoyer($lienparente['libelleEng']); + } + $isActif = ($enVigueur == "1"); ?> - - - - - + \ No newline at end of file diff --git a/Vue/Paramlienparente/index.php b/Vue/Paramlienparente/index.php index 8d221c47..16c87a1e 100755 --- a/Vue/Paramlienparente/index.php +++ b/Vue/Paramlienparente/index.php @@ -1,4 +1,3 @@ -titre = "INTER SANTE - " . _("Liens de Parenté"); ?>
@@ -21,17 +20,17 @@
-
-
- - - - - - - - - +
+
+
+ + + + + + + + nettoyer($v['id']); $codeLienParente = $this->nettoyer($v['codeLienParente']); @@ -74,12 +73,17 @@ -