1.4.24 icones de l'inscription et de la désincription de masse

This commit is contained in:
Fred Tempez 2024-02-10 19:23:18 +01:00
parent 6da8223209
commit cc92c90403
6 changed files with 42 additions and 16 deletions

View File

@ -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/';

View File

@ -15,4 +15,12 @@
/** NE PAS EFFACER
* admin.css
*/
*/
#courseUserAddSelectAll {
color: lightgreen;
}
#courseUserAddSelectNone {
color: lightcoral;
}

View File

@ -7,19 +7,22 @@
'value' => template::ico('left')
]); ?>
</div>
<div class="col1 offset7">
<div class="col1 offset8">
<?php echo template::button('courseUserAddSelectAll', [
'value' => 'Tout'
'value' => template::ico('check'),
'help' => 'Tout sélectionner'
]); ?>
</div>
<div class="col1">
<?php echo template::button('courseUserAddSelectNone', [
'value' => 'Aucun'
'value' => template::ico('cancel'),
'help' => 'Tout désélectionner'
]); ?>
</div>
<div class="col2">
<div class="col1">
<?php echo template::submit('courseUsersAddSubmit', [
'value' => 'Inscrire'
'value' => '',
'ico' => 'plus',
]); ?>
</div>
</div>

View File

@ -15,4 +15,16 @@
/** NE PAS EFFACER
* admin.css
*/
*/
#courseUsersDeleteSubmit {
background-color: rgba(217, 95, 78, 1);
}
#courseUserDeleteSelectAll {
color: lightgreen;
}
#courseUserDeleteSelectNone {
color: lightcoral;
}

View File

@ -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];

View File

@ -7,20 +7,23 @@
'value' => template::ico('left')
]); ?>
</div>
<div class="col1 offset7">
<div class="col1 offset8">
<?php echo template::button('courseUserDeleteSelectAll', [
'value' => 'Tout'
'value' => template::ico('check'),
'help' => 'Tout sélectionner'
]); ?>
</div>
<div class="col1">
<?php echo template::button('courseUserDeleteSelectNone', [
'value' => 'Aucun'
'value' => template::ico('cancel'),
'help' => 'Tout désélectionner'
]); ?>
</div>
<div class="col2">
<div class="col1">
<?php echo template::submit('courseUsersDeleteSubmit', [
'class' => 'buttonRed',
'value' => 'Désinscrire'
'ico' => '',
'value' => template::ico('minus'),
]); ?>
</div>
</div>