check/uncheck all-checkbox

This commit is contained in:
envoyr
2022-05-16 14:42:05 +02:00
parent 8e85437b4b
commit 0311ced7c3
4 changed files with 14 additions and 0 deletions

View File

@@ -1165,6 +1165,8 @@ Vielen Dank, Ihr Administrator',
'description' => 'Hier können die angezeigten Tabellenspalten angepasst werden',
],
'mandatoryfield' => 'Pflichtfeld',
'select_all' => 'Alle auswählen',
'unselect_all' => 'Alle abwählen',
],
'phpfpm' => [
'vhost_httpuser' => 'Lokaler Benutzer für PHP-FPM (Froxlor-Vhost)',

View File

@@ -1529,6 +1529,8 @@ Yours sincerely, your administrator',
'description' => 'Here you can customize the visible columns',
],
'mandatoryfield' => 'Field is mandatory',
'select_all' => 'Select all',
'unselect_all' => 'Unselect all',
],
'phpfpm' => [
'vhost_httpuser' => 'Local user to use for PHP-FPM (Froxlor vHost)',

View File

@@ -34,4 +34,12 @@ $(function () {
}
});
});
$('#manageColumnsModal form #select-all').on('click', function () {
$('#manageColumnsModal form input:checkbox').prop('checked', true);
});
$('#manageColumnsModal form #unselect-all').on('click', function () {
$('#manageColumnsModal form input:checkbox').prop('checked', false);
});
});

View File

@@ -82,6 +82,8 @@
{% endfor %}
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" id="select-all">{{ lng('panel.select_all') }}</button>
<button type="button" class="btn btn-secondary" id="unselect-all">{{ lng('panel.unselect_all') }}</button>
<button type="button" class="btn btn-secondary" id="reset">{{ lng('panel.default') }}</button>
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">{{ lng('panel.modalclose') }}</button>
<button type="submit" class="btn btn-primary">{{ lng('panel.save') }}</button>