From a5b23de977715174fb55f1bcfc47de31c0406278 Mon Sep 17 00:00:00 2001 From: Lars Gebhardt-Kusche Date: Tue, 11 Aug 2026 21:30:37 +0200 Subject: [PATCH] update event --- partials/landing/account/dashboard.php | 54 +++++++++++++++----------- 1 file changed, 31 insertions(+), 23 deletions(-) diff --git a/partials/landing/account/dashboard.php b/partials/landing/account/dashboard.php index 5fbb1f1..3ec71a7 100755 --- a/partials/landing/account/dashboard.php +++ b/partials/landing/account/dashboard.php @@ -62,6 +62,12 @@ $categoryInputValue = $categoryTitleMap[$categorySlugValue] ?? $categorySlugValu $eventLocationModeValue = $editingEvent ? (string)($editEvent['location_source_type'] ?? 'custom') : 'custom'; $eventLocationSourceIdValue = $editingEvent && !empty($editEvent['location_source_listing_id']) ? (int)$editEvent['location_source_listing_id'] : 0; $eventLocationSourceInputValue = ''; +$usesDatabaseEventLocation = $currentEntryKind === 'event' && $eventLocationModeValue !== 'custom'; +$eventAddressInfoValue = trim(implode(', ', array_filter([ + $streetValue, + trim($zipValue . ' ' . $cityValue), + $regionValue, +]))); foreach (($eventLocationOptions ?? []) as $locationOption) { if ((int)($locationOption['id'] ?? 0) !== $eventLocationSourceIdValue) { continue; @@ -1200,7 +1206,7 @@ if (!empty($canManageSystemSettings)) { Neue Veranstaltung anlegen -
+
> @@ -1211,9 +1217,9 @@ if (!empty($canManageSystemSettings)) {
- -
> - - -
+
> + + +
+
@@ -1255,7 +1263,7 @@ if (!empty($canManageSystemSettings)) {

Neue Orte und Veranstaltungen werden erst nach Prüfung durch einen Admin freigegeben.

-
+
>
@@ -1265,7 +1273,7 @@ if (!empty($canManageSystemSettings)) {
-
+
>
@@ -1275,18 +1283,18 @@ if (!empty($canManageSystemSettings)) {
-
+
- -
+
> + Adresse +
+
+
-
+
>
Karte @@ -1649,11 +1657,11 @@ if (!empty($canManageSystemSettings)) { if (categoryInput) categoryInput.required = kind !== 'event'; setSectionState(eventChildrenWrap, kind === 'event' || kind === 'editorial_event'); setSectionState(eventCapacityWrap, kind === 'event'); - setSectionState(eventValidUntilWrap, kind === 'editorial_event'); + if (eventValidUntilWrap) setSectionState(eventValidUntilWrap, kind === 'editorial_event'); setSectionState(eventPricingWrap, kind === 'place' || kind === 'editorial_event'); setSectionState(placeContactWrap, kind === 'place' || kind === 'editorial_event'); setSectionState(placeOpeningHoursWrap, kind === 'place' || kind === 'editorial_event'); - setSectionState(eventRecurrenceWrap, kind === 'editorial_event'); + if (eventRecurrenceWrap) setSectionState(eventRecurrenceWrap, kind === 'editorial_event'); setSectionState(visibilityDetails, kind === 'event'); if (eventDateLabel) { eventDateLabel.textContent = kind === 'editorial_event' ? 'Gültig von' : 'Datum';