Rename the Plan bundle to Program across config, routes, menus, and controllers (Plan -> Initiative), bump version to 0.16.0, and introduce new audience and UTM taxonomy routes and permissions to support the expanded Programs feature set.
53 lines
2.9 KiB
Twig
53 lines
2.9 KiB
Twig
{% extends '@MauticCore/Default/content.html.twig' %}
|
|
|
|
{% block mauticContent %}programAudience{% endblock %}
|
|
|
|
{% block headerTitle %}
|
|
{% if entity.id %}
|
|
{{ 'mautic.program.audience.header.edit'|trans({'%name%': entity.name}) }}
|
|
{% else %}
|
|
{{ 'mautic.program.audience.header.new'|trans }}
|
|
{% endif %}
|
|
{% endblock %}
|
|
|
|
{% block content %}
|
|
{{ form_start(form) }}
|
|
<div class="box-layout">
|
|
<div class="col-md-9 height-auto bdr-r">
|
|
<div class="pa-md">
|
|
{{ form_row(form.name) }}
|
|
<div class="row">
|
|
{# The selected type's pictogram, fixed per type; programAudienceOnLoad updates it
|
|
when the dropdown changes. A new form defaults to Persona. #}
|
|
<div class="col-xs-1 text-center pt-lg">
|
|
<i class="{{ (entity.audienceType ?? constant('MauticPlugin\\ProgramBundle\\Entity\\AudienceType::Persona'))|program_audience_type_icon }} initiative-item-type-icon" style="font-size: 28px;" aria-hidden="true"></i>
|
|
</div>
|
|
<div class="col-xs-11">
|
|
{{ form_row(form.audienceType) }}
|
|
<p class="text-muted small">{{ 'mautic.program.audience.type.fixed_note'|trans }}</p>
|
|
</div>
|
|
</div>
|
|
{{ form_row(form.segments) }}
|
|
<p class="text-muted small">{{ 'mautic.program.audience.segments.note'|trans }}</p>
|
|
{% if form.tagline is defined %}{{ form_row(form.tagline) }}{% endif %}
|
|
{% if form.profileCriteria is defined %}{{ form_row(form.profileCriteria) }}{% endif %}
|
|
{% if form.motivations is defined %}{{ form_row(form.motivations) }}{% endif %}
|
|
{% if form.barriers is defined %}{{ form_row(form.barriers) }}{% endif %}
|
|
{% if form.frustrations is defined %}{{ form_row(form.frustrations) }}{% endif %}
|
|
{% if form.triggers is defined %}{{ form_row(form.triggers) }}{% endif %}
|
|
{% if form.decisionRole is defined %}{{ form_row(form.decisionRole) }}{% endif %}
|
|
{% if form.preferredTones is defined %}{{ form_row(form.preferredTones) }}{% endif %}
|
|
{% if form.preferredChannels is defined %}{{ form_row(form.preferredChannels) }}{% endif %}
|
|
{% if form.stages is defined %}{{ form_row(form.stages) }}{% endif %}
|
|
{% if form.estimatedSize is defined %}{{ form_row(form.estimatedSize) }}{% endif %}
|
|
</div>
|
|
</div>
|
|
<div class="col-md-3 height-auto">
|
|
<div class="pr-lg pl-lg pt-md pb-md">
|
|
{{ form_row(form.isPublished) }}
|
|
<p class="text-muted small">{{ 'mautic.program.audience.active.help'|trans }}</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{{ form_end(form) }}
|
|
{% endblock %} |