Button to select and unselect all legal forms

This commit is contained in:
Roman Schenk 2026-03-11 21:55:59 +01:00
parent 9a8cc0689a
commit 0148b41353
1 changed files with 27 additions and 5 deletions

View File

@ -61,7 +61,7 @@ include "zefixAPI.php";
<div class="d-flex flex-column flex-md-row align-items-md-start justify-content-between gap-2 mb-3">
<div>
<h1 class="h3 mb-1">Silias Zefix Suche</h1>
<h1 class="h3 mb-1">Silias Zefix Export</h1>
<p class="text-muted mb-0">
Exportiere Firmen als Excel (xlsx) aus dem Zentralen Firmenindex (ZEFIX).
</p>
@ -134,6 +134,16 @@ include "zefixAPI.php";
<!-- Rechtsform -->
<div class="mb-4">
<label class="form-label">Rechtsform</label>
<div class="mb-2">
<button type="button" class="btn btn-outline-primary button-small" onclick="alleRechtsformenAuswählen()">
Alle auswählen
</button>
<button type="button" class="btn btn-outline-secondary button-small" onclick="rechtsformenLöschen()">
Auswahl löschen
</button>
</div>
<div id="rechtsformenauswahl" class="scrollWindow"></div>
</div>
@ -363,6 +373,18 @@ include "zefixAPI.php";
});
filterFunction();
}
function alleRechtsformenAuswählen() {
document.querySelectorAll('input[name="rechtsformen[]"]').forEach(function(cb) {
cb.checked = true;
});
}
function rechtsformenLöschen() {
document.querySelectorAll('input[name="rechtsformen[]"]').forEach(function(cb) {
cb.checked = false;
});
}
</script>
</div>