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

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

{{ totalTemplates }} template{{ totalTemplates != 1 ? 's' : '' }} available

{# ================================================================ SCOPE TABS ================================================================ #} {# ================================================================ TAB CONTENT ================================================================ #}
{# ============================================================ GLOBAL TEMPLATES ============================================================ #}
{% if templatesByScope.global|length > 0 %}
{% for template in templatesByScope.global %}
{{ template.eventType|default('custom')|capitalize }} {% if not template.isActive %} Inactive {% endif %}

{{ template.name }}

{{ template.description|default('No description')|slice(0, 100) }}{% if template.description|length > 100 %}...{% endif %}

{{ template.usageCount|default(0) }} use{{ template.usageCount != 1 ? 's' : '' }}
{% endfor %}
{% else %}

No global templates available

{% endif %}
{# ============================================================ FRANCHISE TEMPLATES ============================================================ #}
{% if templatesByScope.franchise|length > 0 %}
{% for template in templatesByScope.franchise %}
{{ template.eventType|default('custom')|capitalize }} {% if not template.isActive %} Inactive {% endif %}

{{ template.name }}

{{ template.description|default('No description')|slice(0, 100) }}{% if template.description|length > 100 %}...{% endif %}

{{ template.usageCount|default(0) }} use{{ template.usageCount != 1 ? 's' : '' }}
{% endfor %}
{% else %}

No franchise templates available

{% endif %}
{# ============================================================ STORE TEMPLATES (editable) ============================================================ #}
{% if templatesByScope.store|length > 0 %}
{% for template in templatesByScope.store %}
{{ template.eventType|default('custom')|capitalize }} {% if not template.isActive %} Inactive {% endif %}

{{ template.name }}

{{ template.description|default('No description')|slice(0, 100) }}{% if template.description|length > 100 %}...{% endif %}

{{ template.usageCount|default(0) }} use{{ template.usageCount != 1 ? 's' : '' }}
{% endfor %}
{% else %}

No store-specific templates yet

{% endif %}
{# End Tab Content #}
{# End Templates Page #} {% include 'components/footer.html' %}
{# ================================================================ CREATE/EDIT TEMPLATE MODAL ================================================================ #} {# ================================================================ PREVIEW TEMPLATE MODAL ================================================================ #} {# ================================================================ JAVASCRIPT ================================================================ #}