filter admin

This commit is contained in:
Fred Tempez 2023-10-12 19:25:20 +02:00
parent 7878f972e5
commit fff6c3b086
2 changed files with 11 additions and 7 deletions

View File

@ -10,4 +10,14 @@
* @license CC Attribution-NonCommercial-NoDerivatives 4.0 International
* @link http://zwiicms.fr/
*/
$(".userDelete").on("click",(function(){var _this=$(this);return message="<?php echo helper::translate('Confirmer la suppression de cet utilisateur');?>",core.confirm(message,(function(){$(location).attr("href",_this.attr("href"))}))}));
$(document).ready((function () {
$(".userDelete").on("click", (function () {
var _this = $(this);
return message = "<?php echo helper::translate('Confirmer la suppression de cet utilisateur');?>", core.confirm(message, (function () {
$(location).attr("href", _this.attr("href"))
}))
}));
$("#userFilterGroup, #userFilterFirstName, #userFilterLastName").change(function() {
$("#userFilterUserForm").submit();
});
}));

View File

@ -64,12 +64,6 @@
'selected' => isset($_POST['userFilterLastName']) ? $_POST['userFilterLastName'] : 'all',
]); ?>
</div>
<div class="col2 offset1">
<?php echo template::submit('userFilterSubmit', [
'value' => 'Filtrer',
'uniqueSubmission' => true
]); ?>
</div>
</div>
</div>
</div>