diff --git a/core/module/user/view/profilAdd/profilAdd.css b/core/module/user/view/profilAdd/profilAdd.css index 121ee684..5fbba8d9 100644 --- a/core/module/user/view/profilAdd/profilAdd.css +++ b/core/module/user/view/profilAdd/profilAdd.css @@ -17,6 +17,6 @@ * admin.css */ -.containerPage { +.containerPage, .containerModule { display: none; } \ No newline at end of file diff --git a/core/module/user/view/profilAdd/profilAdd.js.php b/core/module/user/view/profilAdd/profilAdd.js.php index 3d1021c5..87809556 100644 --- a/core/module/user/view/profilAdd/profilAdd.js.php +++ b/core/module/user/view/profilAdd/profilAdd.js.php @@ -24,6 +24,16 @@ $(document).ready(function () { } }); + // Désactive la gestion des pages pour les membres + $('#profilAddGroup').change(function () { + ; + if ($(this).val() === '1') { + $('.containerPage').slideUp(); + } else { + $('.containerPage').slideDown(); + } + }); + // Gérer l'évènement affichage des $("#profilAddPageModule").change(function () { if (!$(this).is(':checked')) { diff --git a/core/module/user/view/profilAdd/profilAdd.php b/core/module/user/view/profilAdd/profilAdd.php index 210926b1..95606f1a 100644 --- a/core/module/user/view/profilAdd/profilAdd.php +++ b/core/module/user/view/profilAdd/profilAdd.php @@ -52,27 +52,27 @@