This commit is contained in:
@@ -1263,7 +1263,7 @@ if (!empty($canManageSystemSettings)) {
|
|||||||
<?php elseif (($section ?? '') === 'places'): ?>
|
<?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>
|
<p class="muted small" style="margin:0;">Neue Orte und Veranstaltungen werden erst nach Prüfung durch einen Admin freigegeben.</p>
|
||||||
<?php endif; ?>
|
<?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">
|
<div class="stack gap-6">
|
||||||
<label class="label" for="evZip">PLZ</label>
|
<label class="label" for="evZip">PLZ</label>
|
||||||
<input id="evZip" name="zip" class="input" maxlength="5" value="<?= htmlspecialchars($zipValue, ENT_QUOTES) ?>">
|
<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) ?>">
|
<input id="evCity" name="city" class="input" value="<?= htmlspecialchars($cityValue, ENT_QUOTES) ?>">
|
||||||
</div>
|
</div>
|
||||||
</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">
|
<div class="stack gap-6">
|
||||||
<label class="label" for="evStreet">Straße / Adresse</label>
|
<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) ?>">
|
<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) {
|
function setSectionState(element, visible) {
|
||||||
if (!element) return;
|
if (!element) return;
|
||||||
element.hidden = !visible;
|
element.hidden = !visible;
|
||||||
|
if (visible) {
|
||||||
|
element.style.removeProperty('display');
|
||||||
|
} else {
|
||||||
|
element.style.display = 'none';
|
||||||
|
}
|
||||||
element.querySelectorAll('input, select, textarea, button').forEach((field) => {
|
element.querySelectorAll('input, select, textarea, button').forEach((field) => {
|
||||||
if (field.type === 'hidden') return;
|
if (field.type === 'hidden') return;
|
||||||
field.disabled = !visible;
|
field.disabled = !visible;
|
||||||
|
|||||||
Reference in New Issue
Block a user