event
All checks were successful
Deploy / deploy (push) Successful in 55s

This commit is contained in:
2026-08-11 21:36:02 +02:00
parent a5b23de977
commit f3e0f28424

View File

@@ -1263,7 +1263,7 @@ if (!empty($canManageSystemSettings)) {
<?php elseif (($section ?? '') === 'places'): ?>
<p class="muted small" style="margin:0;">Neue Orte und Veranstaltungen werden erst nach Prüfung durch einen Admin freigegeben.</p>
<?php endif; ?>
<div class="form-grid" id="eventAddressFieldsWrap"<?= $usesDatabaseEventLocation ? ' hidden' : '' ?>>
<div class="form-grid" id="eventAddressFieldsWrap" style="<?= $usesDatabaseEventLocation ? 'display:none;' : '' ?>">
<div class="stack gap-6">
<label class="label" for="evZip">PLZ</label>
<input id="evZip" name="zip" class="input" maxlength="5" value="<?= htmlspecialchars($zipValue, ENT_QUOTES) ?>">
@@ -1273,7 +1273,7 @@ if (!empty($canManageSystemSettings)) {
<input id="evCity" name="city" class="input" value="<?= htmlspecialchars($cityValue, ENT_QUOTES) ?>">
</div>
</div>
<div class="form-grid" id="eventAddressStreetWrap"<?= $usesDatabaseEventLocation ? ' hidden' : '' ?>>
<div class="form-grid" id="eventAddressStreetWrap" style="<?= $usesDatabaseEventLocation ? 'display:none;' : '' ?>">
<div class="stack gap-6">
<label class="label" for="evStreet">Straße / Adresse</label>
<input id="evStreet" name="street" class="input" placeholder="z. B. Musterstraße 12" value="<?= htmlspecialchars($streetValue, ENT_QUOTES) ?>">
@@ -1521,6 +1521,11 @@ if (!empty($canManageSystemSettings)) {
function setSectionState(element, visible) {
if (!element) return;
element.hidden = !visible;
if (visible) {
element.style.removeProperty('display');
} else {
element.style.display = 'none';
}
element.querySelectorAll('input, select, textarea, button').forEach((field) => {
if (field.type === 'hidden') return;
field.disabled = !visible;