From cc92c90403b25784967f7b497387b925cda388cd Mon Sep 17 00:00:00 2001 From: fredtempez Date: Sat, 10 Feb 2024 19:23:18 +0100 Subject: [PATCH] =?UTF-8?q?1.4.24=20icones=20de=20l'inscription=20et=20de?= =?UTF-8?q?=20la=20d=C3=A9sincription=20de=20masse?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/core.php | 2 +- core/module/course/view/usersAdd/usersAdd.css | 10 +++++++++- core/module/course/view/usersAdd/usersAdd.php | 13 ++++++++----- .../module/course/view/usersDelete/usersDelete.css | 14 +++++++++++++- .../course/view/usersDelete/usersDelete.js.php | 6 +++--- .../module/course/view/usersDelete/usersDelete.php | 13 ++++++++----- 6 files changed, 42 insertions(+), 16 deletions(-) diff --git a/core/core.php b/core/core.php index 2d480e1..44a25d6 100644 --- a/core/core.php +++ b/core/core.php @@ -51,7 +51,7 @@ class common const ACCESS_TIMER = 1800; // Numéro de version - const ZWII_VERSION = '1.4.23'; + const ZWII_VERSION = '1.4.24'; // URL autoupdate const ZWII_UPDATE_URL = 'https://forge.chapril.org/ZwiiCMS-Team/campus-update/raw/branch/master/'; diff --git a/core/module/course/view/usersAdd/usersAdd.css b/core/module/course/view/usersAdd/usersAdd.css index b6eeb0e..bf7a886 100644 --- a/core/module/course/view/usersAdd/usersAdd.css +++ b/core/module/course/view/usersAdd/usersAdd.css @@ -15,4 +15,12 @@ /** NE PAS EFFACER * admin.css -*/ \ No newline at end of file +*/ + +#courseUserAddSelectAll { + color: lightgreen; +} + +#courseUserAddSelectNone { + color: lightcoral; +} \ No newline at end of file diff --git a/core/module/course/view/usersAdd/usersAdd.php b/core/module/course/view/usersAdd/usersAdd.php index a9c18f8..fd157de 100644 --- a/core/module/course/view/usersAdd/usersAdd.php +++ b/core/module/course/view/usersAdd/usersAdd.php @@ -7,19 +7,22 @@ 'value' => template::ico('left') ]); ?> -
+
'Tout' + 'value' => template::ico('check'), + 'help' => 'Tout sélectionner' ]); ?>
'Aucun' + 'value' => template::ico('cancel'), + 'help' => 'Tout désélectionner' ]); ?>
-
+
'Inscrire' + 'value' => '', + 'ico' => 'plus', ]); ?>
diff --git a/core/module/course/view/usersDelete/usersDelete.css b/core/module/course/view/usersDelete/usersDelete.css index b6eeb0e..198551e 100644 --- a/core/module/course/view/usersDelete/usersDelete.css +++ b/core/module/course/view/usersDelete/usersDelete.css @@ -15,4 +15,16 @@ /** NE PAS EFFACER * admin.css -*/ \ No newline at end of file +*/ + +#courseUsersDeleteSubmit { + background-color: rgba(217, 95, 78, 1); +} + +#courseUserDeleteSelectAll { + color: lightgreen; +} + +#courseUserDeleteSelectNone { + color: lightcoral; +} diff --git a/core/module/course/view/usersDelete/usersDelete.js.php b/core/module/course/view/usersDelete/usersDelete.js.php index 4d07dbc..4ec2315 100644 --- a/core/module/course/view/usersDelete/usersDelete.js.php +++ b/core/module/course/view/usersDelete/usersDelete.js.php @@ -13,11 +13,11 @@ $(document).ready((function () { - $('#courseUserDeleteSelectAll').on('click', function() { + $('#courseUserDeleteSelectAll').on('click', function () { $('.checkboxSelect').prop('checked', true); saveCheckboxState(); }); - $('#courseUserDeleteSelectNone').on('click', function() { + $('#courseUserDeleteSelectNone').on('click', function () { $('.checkboxSelect').prop('checked', false); saveCheckboxState(); }); @@ -80,7 +80,7 @@ $(document).ready((function () { // Function to restore checkbox state function restoreCheckboxState() { var checkboxState = JSON.parse(localStorage.getItem('checkboxState')) || {}; - // console.log(checkboxState); + // console.log(checkboxState); for (var checkboxId in checkboxState) { if (checkboxState.hasOwnProperty(checkboxId)) { var checked = checkboxState[checkboxId]; diff --git a/core/module/course/view/usersDelete/usersDelete.php b/core/module/course/view/usersDelete/usersDelete.php index d9b26c3..700db1d 100644 --- a/core/module/course/view/usersDelete/usersDelete.php +++ b/core/module/course/view/usersDelete/usersDelete.php @@ -7,20 +7,23 @@ 'value' => template::ico('left') ]); ?>
-
+
'Tout' + 'value' => template::ico('check'), + 'help' => 'Tout sélectionner' ]); ?>
'Aucun' + 'value' => template::ico('cancel'), + 'help' => 'Tout désélectionner' ]); ?>
-
+
'buttonRed', - 'value' => 'Désinscrire' + 'ico' => '', + 'value' => template::ico('minus'), ]); ?>