{% set page_group = "admin" %} {% include 'components/head.html' %} {# SweetAlert for notifications #} {# Event Management Styles #}
{% include 'components/nav-account.html' %}
{% include 'components/alerts.html' %}
{# ================================================================ PAGE HEADER ================================================================ #}

{{ page.title|default('Edit Event') }}

{{ store.name }} - {{ store.city }}

{# ================================================================ EDIT WIZARD ================================================================ #}
{# Wizard Steps Indicator #}
1 Basic Info
2 Schedule
3 Integrations
4 Review
{# Limited Edit Mode Alert #} {% if not canFullEdit %}
Limited Edit Mode

This event is {{ event.status }}. You can edit the description and add/modify integrations, but the event name, type, and dates are locked.

{% endif %}
{# ============================================================ STEP 1: Basic Information ============================================================ #}

Event Information

Give your event a descriptive name

Optional description for internal reference

Event Type {% if not canFullEdit %} Locked {% endif %}

{% for type in eventTypes %}
{% if type == 'season' %} {% elseif type == 'holiday' %} {% elseif type == 'sale' %} {% elseif type == 'custom' %} {% endif %}
{{ type }}
{% endfor %}
{# ============================================================ STEP 2: Schedule & Dates ============================================================ #}

Event Dates {% if not canFullEdit %} Locked {% endif %}

When the event begins

When the event ends

Phase Configuration

Configure optional phases for build-up and wind-down periods

Days before start for pre-event activities

Days after end for post-event activities

{# ============================================================ STEP 3: Integrations (Hub and Spoke Pattern) ============================================================ #}

Event Integrations

Enable and configure integrations for this event. Click on an enabled integration to configure it.

{# Integration Hub - shows all integration cards with click-to-configure #} {% include 'admin/event-management/partials/integration-hub.html' %}
{# ============================================================ STEP 4: Review & Confirm ============================================================ #}

Review Changes

Event Information
Event Name {{ event.name }}
Event Type {{ event.eventType|capitalize }}
Description {{ event.description|default('Not provided') }}
Schedule
Start Date {{ event.startDate|date('M j, Y') }}
End Date {{ event.endDate|date('M j, Y') }}
Duration -
Active Integrations
-
{# End Wizard Content #} {# ================================================================ WIZARD FOOTER ================================================================ #}
{# End Edit Container #} {# Spoke Modal - placed outside wizard form for proper overlay #} {% include 'admin/event-management/partials/spoke-modal.html' %} {# Spoke Templates (hidden, loaded dynamically into modal) #}
{# End Dashboard #} {% include 'components/footer.html' %}
{# ================================================================ JAVASCRIPT ================================================================ #} {# Integration Hub and Spoke Scripts #}