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; const ACCESS_TIMER = 1800;
// Numéro de version // Numéro de version
const ZWII_VERSION = '1.4.23'; const ZWII_VERSION = '1.4.24';
// URL autoupdate // URL autoupdate
const ZWII_UPDATE_URL = 'https://forge.chapril.org/ZwiiCMS-Team/campus-update/raw/branch/master/'; const ZWII_UPDATE_URL = 'https://forge.chapril.org/ZwiiCMS-Team/campus-update/raw/branch/master/';

View File

@ -16,3 +16,11 @@
/** NE PAS EFFACER /** NE PAS EFFACER
* admin.css * admin.css
*/ */
#courseUserAddSelectAll {
color: lightgreen;
}
#courseUserAddSelectNone {
color: lightcoral;
}

View File

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

View File

@ -16,3 +16,15 @@
/** NE PAS EFFACER /** NE PAS EFFACER
* admin.css * 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 () { $(document).ready((function () {
$('#courseUserDeleteSelectAll').on('click', function() { $('#courseUserDeleteSelectAll').on('click', function () {
$('.checkboxSelect').prop('checked', true); $('.checkboxSelect').prop('checked', true);
saveCheckboxState(); saveCheckboxState();
}); });
$('#courseUserDeleteSelectNone').on('click', function() { $('#courseUserDeleteSelectNone').on('click', function () {
$('.checkboxSelect').prop('checked', false); $('.checkboxSelect').prop('checked', false);
saveCheckboxState(); saveCheckboxState();
}); });

View File

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