{% extends '@MauticCore/Default/content.html.twig' %} {% block mauticContent %}mt3sMpSmartLink{% endblock %} {% block headerTitle %} {% if form.vars.data.id %} {{ 'mt3s.smart_links.smart_links.header.edit'|trans({'%slug%': form.vars.data.slug}) }} {% else %} {{ 'mt3s.smart_links.smart_links.header.new'|trans }} {% endif %} {% endblock %} {% block content %} {{ form_start(form) }}
{# Short link preview: the slug the user types, on the domain set in Smart Links Settings. #}
{{ 'mt3s.smart_links.smart_links.domain.reminder'|trans }} {{ form.vars.smart_link_domain ? form.vars.smart_link_domain ~ '/l/' : '' }}{{ form.vars.smart_link_slug }}
{# The UTM taxonomy of the link: its allowed values drive the fields on the right. #} {{ form_row(form.taxonomy) }} {{ form_row(form.redirectType) }}
{{ form_row(form.destinationUrl) }}
{{ form_row(form.destination) }}

{{ 'mt3s.smart_links.smart_links.utm_parameters'|trans }}

{{ 'mt3s.smart_links.smart_links.utm_parameters.help'|trans }}

{# One fieldset per taxonomy: Mautic's data-show-on switcher shows the one of the chosen taxonomy (the container carries the col- class the switcher toggles). #} {% for taxonomyId, fieldset in form.vars.smart_link_utm_fieldsets %} {% endfor %} {% do form.utmParameters.setRendered() %}
{{ form_end(form) }} {% endblock %}