{# Variables - form - isVariant - tokens - activePage - themes - permissions - previewUrl (optional) - security (optional) - Defined when editing page #} {% form_theme form with [ '@MauticPage/FormTheme/Page/_page_abtest_settings_properties_row.html.twig', '@MauticPage/FormTheme/Page/_page_variantSettings_properties_row.html.twig', ] %} {% set isExisting = activePage.id %} {% set variantParent = activePage.variantParent %} {% set previewUrl = previewUrl|default('') %} {% extends '@MauticCore/Default/content.html.twig' %} {% block mauticContent %}page{% endblock %} {% block headerTitle %} {%- if isExisting -%} {{ 'mautic.page.header.edit'|trans({'%name%': activePage.title}) }} {%- else -%} {{ 'mautic.page.header.new'|trans }} {%- endif -%} {% if variantParent %}
{{ 'mautic.core.variant_of'|trans({'%name%': activePage.title, '%parent%': variantParent.title}) }}
{% elseif activePage.isVariant(false) %}
{{ 'mautic.page.form.has_variants'|trans }}
{%- endif -%} {% endblock %} {% block content %}
{% set template, attr = form.template.vars.data, form.vars.attr %} {% set attr = attr|merge({ 'data-submit-callback-async': 'clearThemeHtmlBeforeSave', }) %} {{ form_start(form, {'attr': attr}) }}
{{ form_row(form.template) }}
{{ include('@MauticCore/Helper/theme_select.html.twig', { 'type': 'page', 'themes': themes, 'active': form.template.vars.value, }, with_context=false) }}

{{ form_row(form.title) }} {% if isVariant %} {{ form_row(form.variantSettings) }} {% else %} {{ form_row(form.alias) }} {{ form_row(form.category) }} {{ form_row(form.language) }} {{ form_row(form.translationParent) }} {% endif %} {{ form_row(form.isPublished, { 'attr': { 'data-none': 'mautic.core.form.unavailable_regardless_of_scheduling', 'data-start': 'mautic.core.form.available_on_scheduled_date', 'data-both': 'mautic.core.form.available_during_scheduled_period', 'data-end': 'mautic.core.form.available_until_scheduled_end' } }) }} {% if (permissions['page:preference_center:editown'] or permissions['page:preference_center:editother']) and not activePage.isVariant %} {{ form_row(form.isPreferenceCenter) }} {% endif %} {{ form_row(form.publishUp, {'label': 'mautic.core.form.available.available_from'}) }} {{ form_row(form.publishDown, {'label': 'mautic.core.form.available.unavailable_from'}) }} {% if not isVariant %} {{ form_row(form.redirectType) }} {{ form_row(form.redirectUrl) }} {% endif %} {{ form_row(form.noIndex) }}
{{ form_row(form.metaDescription) }}
{{ form_row(form.headScript) }}
{{ form_row(form.footerScript) }}
{{ form_rest(form) }}
{{ form_end(form) }} {{ include('@MauticCore/Helper/builder.html.twig', { 'type': 'page', 'isCodeMode': ('mautic_code_mode' is same as activePage.template), 'objectId': activePage.sessionId, 'previewUrl': previewUrl, }, with_context=false) }} {% endblock %}