refactor(plugin): rebrand as MT3SMarketingProgram, release 0.17.0
Rename the plugin's vendor/namespace from experiential/Program to mt3s/MT3SMarketingProgram (composer: mt3s/mautic-marketing-program-bundle): - ProgramBundle -> MT3SMarketingProgramBundle; extension, integration, config support, permissions, events and twig extension renamed likewise - Initiative* -> Program*: controller (InitiativeController -> ProgramController), model, entities, repositories, form types and views (new _tabs/_task_table/_tab_table_filter partials, details page) - Settings config form theme -> _config_mt3smarketingprogramconfig_widget; routes and translations re-prefixed (mt3s_marketing_program_*) - Assets: icon.svg -> mt3s-mp-icon.svg; program.js -> mt3s-mp-program.js (OnLoad hooks renamed mt3sMpProgram*) - Add Command/RefreshStatsCommand; Migrations/Version_0_17_0.php renames the tables to mt3s_mp_program_*
This commit is contained in:
1 parent
687d33d30c
commit
ea88b7a772
131 files changed
+3238
-2836
No files matched your search
@@ -1,18 +1,18 @@
|
||||
{% extends '@MauticCore/Default/content.html.twig' %}
|
||||
|
||||
{% block mauticContent %}programAudience{% endblock %}
|
||||
{% block mauticContent %}mt3sMpProgramAudience{% endblock %}
|
||||
|
||||
{% block preHeader %}
|
||||
<div class="pull-right">
|
||||
{{ include('@MauticCore/Helper/page_actions.html.twig', {
|
||||
'item': item,
|
||||
'templateButtons': {
|
||||
'edit': securityHasEntityAccess(permissions['program:audiences:editown'], permissions['program:audiences:editother'], item.createdBy),
|
||||
'delete': securityHasEntityAccess(permissions['program:audiences:deleteown'], permissions['program:audiences:deleteother'], item.createdBy),
|
||||
'edit': securityHasEntityAccess(permissions['mt3smarketingprogram:audiences:editown'], permissions['mt3smarketingprogram:audiences:editother'], item.createdBy),
|
||||
'delete': securityHasEntityAccess(permissions['mt3smarketingprogram:audiences:deleteown'], permissions['mt3smarketingprogram:audiences:deleteother'], item.createdBy),
|
||||
},
|
||||
'actionRoute': 'initiative_audience_action',
|
||||
'indexRoute': 'initiative_audience_index',
|
||||
'langVar': 'initiative.audience',
|
||||
'actionRoute': 'mt3s_marketing_program_audience_action',
|
||||
'indexRoute': 'mt3s_marketing_program_audience_index',
|
||||
'langVar': 'program.audience',
|
||||
}) }}
|
||||
</div>
|
||||
{% endblock %}
|
||||
@@ -22,103 +22,103 @@
|
||||
{% block publishStatus %}
|
||||
<div class="col-xs-0 col-sm-3 text-right pr-0">
|
||||
<span class="label {{ item.isPublished ? 'label-success' : 'label-gray' }}">
|
||||
{{ (item.isPublished ? 'mautic.program.audience.active' : 'mautic.program.audience.inactive')|trans }}
|
||||
{{ (item.isPublished ? 'mt3s.marketing_program.audience.active' : 'mt3s.marketing_program.audience.inactive')|trans }}
|
||||
</span>
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<div class="pa-md">
|
||||
<table class="table table-hover mb-md initiative-audience-details">
|
||||
<table class="table table-hover mb-md program-audience-details">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="col-md-3 text-muted" style="width: 30%;">{{ 'mautic.program.audience.field.type'|trans }}</td>
|
||||
<td class="col-md-3 text-muted" style="width: 30%;">{{ 'mt3s.marketing_program.audience.field.type'|trans }}</td>
|
||||
<td>
|
||||
<i class="{{ item.audienceType.icon }} initiative-item-type-icon" style="font-size: 24px;" aria-hidden="true"></i>
|
||||
<i class="{{ item.audienceType.icon }} program-item-type-icon" style="font-size: 24px;" aria-hidden="true"></i>
|
||||
{{ item.audienceType.labelKey|trans }}
|
||||
</td>
|
||||
</tr>
|
||||
{% if item.segments is not empty %}
|
||||
<tr>
|
||||
<td class="text-muted">{{ 'mautic.program.audience.field.segments'|trans }}</td>
|
||||
<td class="text-muted">{{ 'mt3s.marketing_program.audience.field.segments'|trans }}</td>
|
||||
<td>
|
||||
{% for segment in item.segments %}
|
||||
<span class="label label-info">{{ segment.name }} ({{ program_audience_segment_count(segment.id) }})</span>{% if not loop.last %} {% endif %}
|
||||
<span class="label label-info">{{ segment.name }} ({{ mt3s_marketing_program_audience_segment_count(segment.id) }})</span>{% if not loop.last %} {% endif %}
|
||||
{% endfor %}
|
||||
</td>
|
||||
</tr>
|
||||
{% endif %}
|
||||
{% if item.tagline %}
|
||||
<tr>
|
||||
<td class="text-muted">{{ 'mautic.program.audience.field.tagline'|trans }}</td>
|
||||
<td>{{ item.tagline|program_linkify }}</td>
|
||||
<td class="text-muted">{{ 'mt3s.marketing_program.audience.field.tagline'|trans }}</td>
|
||||
<td>{{ item.tagline|mt3s_marketing_program_linkify }}</td>
|
||||
</tr>
|
||||
{% endif %}
|
||||
{% if item.profileCriteria %}
|
||||
<tr>
|
||||
<td class="text-muted">{{ 'mautic.program.audience.field.profile_criteria'|trans }}</td>
|
||||
<td style="white-space: pre-wrap;">{{ item.profileCriteria|program_linkify }}</td>
|
||||
<td class="text-muted">{{ 'mt3s.marketing_program.audience.field.profile_criteria'|trans }}</td>
|
||||
<td style="white-space: pre-wrap;">{{ item.profileCriteria|mt3s_marketing_program_linkify }}</td>
|
||||
</tr>
|
||||
{% endif %}
|
||||
{% if item.motivations %}
|
||||
<tr>
|
||||
<td class="text-muted">{{ 'mautic.program.audience.field.motivations'|trans }}</td>
|
||||
<td style="white-space: pre-wrap;">{{ item.motivations|program_linkify }}</td>
|
||||
<td class="text-muted">{{ 'mt3s.marketing_program.audience.field.motivations'|trans }}</td>
|
||||
<td style="white-space: pre-wrap;">{{ item.motivations|mt3s_marketing_program_linkify }}</td>
|
||||
</tr>
|
||||
{% endif %}
|
||||
{% if item.barriers %}
|
||||
<tr>
|
||||
<td class="text-muted">{{ 'mautic.program.audience.field.barriers'|trans }}</td>
|
||||
<td style="white-space: pre-wrap;">{{ item.barriers|program_linkify }}</td>
|
||||
<td class="text-muted">{{ 'mt3s.marketing_program.audience.field.barriers'|trans }}</td>
|
||||
<td style="white-space: pre-wrap;">{{ item.barriers|mt3s_marketing_program_linkify }}</td>
|
||||
</tr>
|
||||
{% endif %}
|
||||
{% if item.frustrations %}
|
||||
<tr>
|
||||
<td class="text-muted">{{ 'mautic.program.audience.field.frustrations'|trans }}</td>
|
||||
<td style="white-space: pre-wrap;">{{ item.frustrations|program_linkify }}</td>
|
||||
<td class="text-muted">{{ 'mt3s.marketing_program.audience.field.frustrations'|trans }}</td>
|
||||
<td style="white-space: pre-wrap;">{{ item.frustrations|mt3s_marketing_program_linkify }}</td>
|
||||
</tr>
|
||||
{% endif %}
|
||||
{% if item.triggers %}
|
||||
<tr>
|
||||
<td class="text-muted">{{ 'mautic.program.audience.field.triggers'|trans }}</td>
|
||||
<td style="white-space: pre-wrap;">{{ item.triggers|program_linkify }}</td>
|
||||
<td class="text-muted">{{ 'mt3s.marketing_program.audience.field.triggers'|trans }}</td>
|
||||
<td style="white-space: pre-wrap;">{{ item.triggers|mt3s_marketing_program_linkify }}</td>
|
||||
</tr>
|
||||
{% endif %}
|
||||
{% if item.decisionRole %}
|
||||
<tr>
|
||||
<td class="text-muted">{{ 'mautic.program.audience.field.decision_role'|trans }}</td>
|
||||
<td>{{ program_audience_decision_role_label(item.decisionRole) ?? item.decisionRole }}</td>
|
||||
<td class="text-muted">{{ 'mt3s.marketing_program.audience.field.decision_role'|trans }}</td>
|
||||
<td>{{ mt3s_marketing_program_audience_decision_role_label(item.decisionRole) ?? item.decisionRole }}</td>
|
||||
</tr>
|
||||
{% endif %}
|
||||
{% if item.preferredTones is not empty %}
|
||||
<tr>
|
||||
<td class="text-muted">{{ 'mautic.program.audience.field.preferred_tones'|trans }}</td>
|
||||
<td class="text-muted">{{ 'mt3s.marketing_program.audience.field.preferred_tones'|trans }}</td>
|
||||
<td>
|
||||
{% for tone in item.preferredTones %}
|
||||
<span class="label label-default">{{ program_audience_tone_label(tone) ?? tone }}</span>
|
||||
<span class="label label-default">{{ mt3s_marketing_program_audience_tone_label(tone) ?? tone }}</span>
|
||||
{% endfor %}
|
||||
</td>
|
||||
</tr>
|
||||
{% endif %}
|
||||
{% if item.preferredChannels is not empty %}
|
||||
<tr>
|
||||
<td class="text-muted">{{ 'mautic.program.audience.field.preferred_channels'|trans }}</td>
|
||||
<td class="text-muted">{{ 'mt3s.marketing_program.audience.field.preferred_channels'|trans }}</td>
|
||||
<td>
|
||||
{% for channel in item.preferredChannels %}
|
||||
<span class="label label-default">{{ program_audience_channel_label(channel)|trans }}</span>
|
||||
<span class="label label-default">{{ mt3s_marketing_program_audience_channel_label(channel)|trans }}</span>
|
||||
{% endfor %}
|
||||
</td>
|
||||
</tr>
|
||||
{% endif %}
|
||||
{% if item.stages is not empty %}
|
||||
<tr>
|
||||
<td class="text-muted">{{ 'mautic.program.audience.field.stages'|trans }}</td>
|
||||
<td class="text-muted">{{ 'mt3s.marketing_program.audience.field.stages'|trans }}</td>
|
||||
<td>{{ item.stages|map(stage => stage.name)|join(', ') }}</td>
|
||||
</tr>
|
||||
{% endif %}
|
||||
{% if item.estimatedSize %}
|
||||
<tr>
|
||||
<td class="text-muted">{{ 'mautic.program.audience.field.estimated_size'|trans }}</td>
|
||||
<td class="text-muted">{{ 'mt3s.marketing_program.audience.field.estimated_size'|trans }}</td>
|
||||
<td>{{ item.estimatedSize }}</td>
|
||||
</tr>
|
||||
{% endif %}
|
||||
@@ -133,27 +133,27 @@
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<h4 class="mb-sm">{{ 'mautic.program.audience.field.plans'|trans }}</h4>
|
||||
{% if item.initiativeLinks is empty %}
|
||||
<p class="text-muted">{{ 'mautic.program.audience.no_plans'|trans }}</p>
|
||||
<h4 class="mb-sm">{{ 'mt3s.marketing_program.audience.field.plans'|trans }}</h4>
|
||||
{% if item.programLinks is empty %}
|
||||
<p class="text-muted">{{ 'mt3s.marketing_program.audience.no_plans'|trans }}</p>
|
||||
{% else %}
|
||||
<div class="table-responsive">
|
||||
<table class="table table-hover initiative-audience-initiatives-view">
|
||||
<table class="table table-hover program-audience-programs-view">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{{ 'mautic.program.field.name'|trans }}</th>
|
||||
<th>{{ 'mautic.program.audience.field.priority'|trans }}</th>
|
||||
<th>{{ 'mautic.program.audience.field.value_proposition'|trans }}</th>
|
||||
<th>{{ 'mautic.program.field.status'|trans }}</th>
|
||||
<th>{{ 'mt3s.marketing_program.field.name'|trans }}</th>
|
||||
<th>{{ 'mt3s.marketing_program.audience.field.priority'|trans }}</th>
|
||||
<th>{{ 'mt3s.marketing_program.audience.field.value_proposition'|trans }}</th>
|
||||
<th>{{ 'mt3s.marketing_program.field.status'|trans }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for link in item.initiativeLinks %}
|
||||
{% for link in item.programLinks %}
|
||||
<tr>
|
||||
<td><a href="{{ path('initiative_action', {'objectAction': 'view', 'objectId': link.initiative.id}) }}" data-toggle="ajax">{{ link.initiative.name }}</a></td>
|
||||
<td><a href="{{ path('mt3s_marketing_program_action', {'objectAction': 'view', 'objectId': link.program.id}) }}" data-toggle="ajax">{{ link.program.name }}</a></td>
|
||||
<td><span class="label {{ link.priority.labelClass }}">{{ link.priority.labelKey|trans }}</span></td>
|
||||
<td class="text-muted">{{ link.valueProposition|default('—') }}</td>
|
||||
<td><span class="label {{ link.initiative.status.labelClass }}">{{ link.initiative.status.labelKey|trans }}</span></td>
|
||||
<td><span class="label {{ link.program.status.labelClass }}">{{ link.program.status.labelKey|trans }}</span></td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
{% extends '@MauticCore/Default/content.html.twig' %}
|
||||
|
||||
{% block mauticContent %}programAudience{% endblock %}
|
||||
{% block mauticContent %}mt3sMpProgramAudience{% endblock %}
|
||||
|
||||
{% block headerTitle %}
|
||||
{% if entity.id %}
|
||||
{{ 'mautic.program.audience.header.edit'|trans({'%name%': entity.name}) }}
|
||||
{{ 'mt3s.marketing_program.audience.header.edit'|trans({'%name%': entity.name}) }}
|
||||
{% else %}
|
||||
{{ 'mautic.program.audience.header.new'|trans }}
|
||||
{{ 'mt3s.marketing_program.audience.header.new'|trans }}
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
|
||||
@@ -17,18 +17,18 @@
|
||||
<div class="pa-md">
|
||||
{{ form_row(form.name) }}
|
||||
<div class="row">
|
||||
{# The selected type's pictogram, fixed per type; programAudienceOnLoad updates it
|
||||
{# The selected type's pictogram, fixed per type; mt3sMpProgramAudienceOnLoad 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>
|
||||
<i class="{{ (entity.audienceType ?? constant('MauticPlugin\\MT3SMarketingProgramBundle\\Entity\\AudienceType::Persona'))|mt3s_marketing_program_audience_type_icon }} program-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>
|
||||
<p class="text-muted small">{{ 'mt3s.marketing_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>
|
||||
<p class="text-muted small">{{ 'mt3s.marketing_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 %}
|
||||
@@ -45,7 +45,7 @@
|
||||
<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>
|
||||
<p class="text-muted small">{{ 'mt3s.marketing_program.audience.active.help'|trans }}</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -2,110 +2,110 @@
|
||||
{% set tmpl = 'list' %}
|
||||
{% extends isIndex ? '@MauticCore/Default/content.html.twig' : '@MauticCore/Default/raw_output.html.twig' %}
|
||||
|
||||
{% block mauticContent %}programAudience{% endblock %}
|
||||
{% block mauticContent %}mt3sMpProgramAudience{% endblock %}
|
||||
|
||||
{% block headerTitle %}{{ 'mautic.program.audience.header.index'|trans }}{% endblock %}
|
||||
{% block headerTitle %}{{ 'mt3s.marketing_program.audience.header.index'|trans }}{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
{% set segmentCounts = program_audience_segment_counts(items) %}
|
||||
{% set segmentCounts = mt3s_marketing_program_audience_segment_counts(items) %}
|
||||
<div id="page-list-wrapper" class="{% if items|length > 0 or searchValue is not empty %}panel {% endif %}panel-default">
|
||||
{{- include('@MauticCore/Helper/list_toolbar.html.twig', {
|
||||
'searchValue': searchValue,
|
||||
'action': currentRoute,
|
||||
'page_actions': {
|
||||
'templateButtons': {
|
||||
'new': permissions['program:audiences:create'],
|
||||
'new': permissions['mt3smarketingprogram:audiences:create'],
|
||||
},
|
||||
'langVar': 'initiative.audience',
|
||||
'langVar': 'program.audience',
|
||||
},
|
||||
'bulk_actions': {
|
||||
'langVar': 'initiative.audience',
|
||||
'langVar': 'program.audience',
|
||||
'templateButtons': {
|
||||
'delete': permissions['program:audiences:deleteown'] or permissions['program:audiences:deleteother'],
|
||||
'delete': permissions['mt3smarketingprogram:audiences:deleteown'] or permissions['mt3smarketingprogram:audiences:deleteother'],
|
||||
},
|
||||
},
|
||||
}) -}}
|
||||
<div class="page-list">
|
||||
{% if items is defined and items is not empty %}
|
||||
<div class="table-responsive">
|
||||
<table class="table table-hover" id="programAudienceTable">
|
||||
<table class="table table-hover" id="mt3sMpProgramAudienceTable">
|
||||
<thead>
|
||||
<tr>
|
||||
{{ include('@MauticCore/Helper/tableheader.html.twig', {
|
||||
'checkall': 'true',
|
||||
'target': '#programAudienceTable',
|
||||
'target': '#mt3sMpProgramAudienceTable',
|
||||
}) }}
|
||||
{# Columns: ID, Pictogram, Type, Name (+ tagline), Segments (with contact
|
||||
counts), Estimated size, Active, Assigned initiatives. #}
|
||||
counts), Estimated size, Active, Assigned programs. #}
|
||||
{{ include('@MauticCore/Helper/tableheader.html.twig', {
|
||||
'sessionVar': 'initiative.audience',
|
||||
'sessionVar': 'program.audience',
|
||||
'orderBy': 't.id',
|
||||
'text': 'mautic.core.id',
|
||||
'class': 'col-initiative-audience-id',
|
||||
'class': 'col-program-audience-id',
|
||||
}) }}
|
||||
{{ include('@MauticCore/Helper/tableheader.html.twig', {
|
||||
'sessionVar': 'initiative.audience',
|
||||
'text': 'mautic.program.audience.field.pictogram',
|
||||
'class': 'col-initiative-audience-pictogram',
|
||||
'sessionVar': 'program.audience',
|
||||
'text': 'mt3s.marketing_program.audience.field.pictogram',
|
||||
'class': 'col-program-audience-pictogram',
|
||||
}) }}
|
||||
{{ include('@MauticCore/Helper/tableheader.html.twig', {
|
||||
'sessionVar': 'initiative.audience',
|
||||
'sessionVar': 'program.audience',
|
||||
'orderBy': 't.audienceType',
|
||||
'text': 'mautic.program.audience.field.type',
|
||||
'class': 'col-initiative-audience-type',
|
||||
'text': 'mt3s.marketing_program.audience.field.type',
|
||||
'class': 'col-program-audience-type',
|
||||
}) }}
|
||||
{{ include('@MauticCore/Helper/tableheader.html.twig', {
|
||||
'sessionVar': 'initiative.audience',
|
||||
'sessionVar': 'program.audience',
|
||||
'orderBy': 't.name',
|
||||
'text': 'mautic.program.audience.field.name',
|
||||
'class': 'col-initiative-audience-name',
|
||||
'text': 'mt3s.marketing_program.audience.field.name',
|
||||
'class': 'col-program-audience-name',
|
||||
'default': true,
|
||||
}) }}
|
||||
{{ include('@MauticCore/Helper/tableheader.html.twig', {
|
||||
'sessionVar': 'initiative.audience',
|
||||
'text': 'mautic.program.audience.field.segments',
|
||||
'class': 'visible-md visible-lg col-initiative-audience-segments',
|
||||
'sessionVar': 'program.audience',
|
||||
'text': 'mt3s.marketing_program.audience.field.segments',
|
||||
'class': 'visible-md visible-lg col-program-audience-segments',
|
||||
}) }}
|
||||
{{ include('@MauticCore/Helper/tableheader.html.twig', {
|
||||
'sessionVar': 'initiative.audience',
|
||||
'text': 'mautic.program.audience.field.estimated_size',
|
||||
'class': 'visible-md visible-lg col-initiative-audience-size',
|
||||
'sessionVar': 'program.audience',
|
||||
'text': 'mt3s.marketing_program.audience.field.estimated_size',
|
||||
'class': 'visible-md visible-lg col-program-audience-size',
|
||||
}) }}
|
||||
{{ include('@MauticCore/Helper/tableheader.html.twig', {
|
||||
'sessionVar': 'initiative.audience',
|
||||
'sessionVar': 'program.audience',
|
||||
'orderBy': 't.isPublished',
|
||||
'text': 'mautic.program.audience.field.active',
|
||||
'class': 'col-initiative-audience-active',
|
||||
'text': 'mt3s.marketing_program.audience.field.active',
|
||||
'class': 'col-program-audience-active',
|
||||
}) }}
|
||||
{{ include('@MauticCore/Helper/tableheader.html.twig', {
|
||||
'sessionVar': 'initiative.audience',
|
||||
'text': 'mautic.program.audience.field.plans',
|
||||
'class': 'visible-md visible-lg col-initiative-audience-initiatives',
|
||||
'sessionVar': 'program.audience',
|
||||
'text': 'mt3s.marketing_program.audience.field.plans',
|
||||
'class': 'visible-md visible-lg col-program-audience-programs',
|
||||
}) }}
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for item in items %}
|
||||
{% set canEdit = securityHasEntityAccess(permissions['program:audiences:editown'], permissions['program:audiences:editother'], item.createdBy) %}
|
||||
{% set canEdit = securityHasEntityAccess(permissions['mt3smarketingprogram:audiences:editown'], permissions['mt3smarketingprogram:audiences:editother'], item.createdBy) %}
|
||||
<tr>
|
||||
<td>
|
||||
{{- include('@MauticCore/Helper/list_actions.html.twig', {
|
||||
'item': item,
|
||||
'templateButtons': {
|
||||
'edit': canEdit,
|
||||
'delete': securityHasEntityAccess(permissions['program:audiences:deleteown'], permissions['program:audiences:deleteother'], item.createdBy),
|
||||
'delete': securityHasEntityAccess(permissions['mt3smarketingprogram:audiences:deleteown'], permissions['mt3smarketingprogram:audiences:deleteother'], item.createdBy),
|
||||
},
|
||||
'langVar': 'initiative.audience',
|
||||
'langVar': 'program.audience',
|
||||
}) -}}
|
||||
</td>
|
||||
<td>{{ item.id }}</td>
|
||||
<td class="text-center">
|
||||
<i class="{{ item.audienceType.icon }} initiative-item-type-icon" style="font-size: 24px;" aria-hidden="true"></i>
|
||||
<i class="{{ item.audienceType.icon }} program-item-type-icon" style="font-size: 24px;" aria-hidden="true"></i>
|
||||
</td>
|
||||
<td>{{ item.audienceType.labelKey|trans }}</td>
|
||||
<td>
|
||||
{% if canEdit %}
|
||||
<a href="{{ path('initiative_audience_action', {'objectAction': 'edit', 'objectId': item.id}) }}" data-toggle="ajax">{% if item.tagline %}{{ item.name }} <span class="text-muted small font-lato">— {{ item.tagline }}</span>{% else %}{{ item.name }}{% endif %}</a>
|
||||
<a href="{{ path('mt3s_marketing_program_audience_action', {'objectAction': 'edit', 'objectId': item.id}) }}" data-toggle="ajax">{% if item.tagline %}{{ item.name }} <span class="text-muted small font-lato">— {{ item.tagline }}</span>{% else %}{{ item.name }}{% endif %}</a>
|
||||
{% else %}
|
||||
{{ item.name }}{% if item.tagline %} <span class="text-muted small font-lato">— {{ item.tagline }}</span>{% endif %}
|
||||
{% endif %}
|
||||
@@ -123,16 +123,16 @@
|
||||
<td class="visible-md visible-lg text-right text-nowrap">{{ item.estimatedSize }}</td>
|
||||
<td>
|
||||
<span class="label {{ item.isPublished ? 'label-success' : 'label-gray' }}">
|
||||
{{ (item.isPublished ? 'mautic.program.audience.active' : 'mautic.program.audience.inactive')|trans }}
|
||||
{{ (item.isPublished ? 'mt3s.marketing_program.audience.active' : 'mt3s.marketing_program.audience.inactive')|trans }}
|
||||
</span>
|
||||
</td>
|
||||
<td class="visible-md visible-lg">
|
||||
{# The initiatives this audience is assigned to, through their Audiences tab. #}
|
||||
{% set links = item.initiativeLinks|default([]) %}
|
||||
{# The programs this audience is assigned to, through their Audiences tab. #}
|
||||
{% set links = item.programLinks|default([]) %}
|
||||
{% for link in links %}
|
||||
<a href="{{ path('initiative_action', {'objectAction': 'view', 'objectId': link.initiative.id}) }}" data-toggle="ajax">{{ link.initiative.name }}</a>{% if link.valueProposition %} <span class="text-muted small">({{ link.valueProposition }})</span>{% endif %}{% if not loop.last %}, {% endif %}
|
||||
<a href="{{ path('mt3s_marketing_program_action', {'objectAction': 'view', 'objectId': link.program.id}) }}" data-toggle="ajax">{{ link.program.name }}</a>{% if link.valueProposition %} <span class="text-muted small">({{ link.valueProposition }})</span>{% endif %}{% if not loop.last %}, {% endif %}
|
||||
{% else %}
|
||||
<span class="text-muted">{{ 'mautic.program.audience.no_plans'|trans }}</span>
|
||||
<span class="text-muted">{{ 'mt3s.marketing_program.audience.no_plans'|trans }}</span>
|
||||
{% endfor %}
|
||||
</td>
|
||||
</tr>
|
||||
@@ -144,8 +144,8 @@
|
||||
'totalItems': totalItems,
|
||||
'page': page,
|
||||
'limit': limit,
|
||||
'baseUrl': path('initiative_audience_index'),
|
||||
'sessionVar': 'initiative.audience',
|
||||
'baseUrl': path('mt3s_marketing_program_audience_index'),
|
||||
'sessionVar': 'program.audience',
|
||||
}) -}}
|
||||
</div>
|
||||
</div>
|
||||
@@ -154,9 +154,9 @@
|
||||
{% else %}
|
||||
<div class="mt-80 col-md-offset-2 col-lg-offset-3 col-md-8 col-lg-5 height-auto">
|
||||
{{ include('@MauticCore/Components/content-block.html.twig', {
|
||||
'heading': 'mautic.program.audience.onboarding.heading',
|
||||
'subheading': 'mautic.program.audience.onboarding.subheading',
|
||||
'copy': 'mautic.program.audience.onboarding.copy',
|
||||
'heading': 'mt3s.marketing_program.audience.onboarding.heading',
|
||||
'subheading': 'mt3s.marketing_program.audience.onboarding.subheading',
|
||||
'copy': 'mt3s.marketing_program.audience.onboarding.copy',
|
||||
}) }}
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
Reference in new issue
Block a user