Files
mautic-marketing-program-bu…/Resources/views/Program/details.html.twig
T
Alexandre Gain ea88b7a772 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_*
2026-11-15 17:48:01 +01:00

450 lines
31 KiB
Twig

{% extends '@MauticCore/Default/content.html.twig' %}
{% block mauticContent %}program{% endblock %}
{#
# No routeBase on the page_actions includes: core would turn it into mautic_mt3s_marketing_program_* route names.
# The buttons use actionRoute (mt3s_marketing_program_action) from the controller, and the close button gets its URL here.
#}
{% block preHeader %}
{{- include('@MauticCore/Helper/page_actions.html.twig', {
'item': item,
'templateButtons': {
'close': true,
},
'closeUrl': path('mt3s_marketing_program_index'),
'targetLabel': 'mt3s.marketing_program.header.index'|trans,
}) -}}
{# Core's helper renders an empty pill when there is no category. #}
{% if item.category %}
{{ include('@MauticCore/Modules/category--inline.html.twig', {'category': item.category}) }}
{% endif %}
{% endblock %}
{% block headerTitle %}{{ item.name }}{% endblock %}
{#
# Under the title, as on an email's page: the plan status, then the total planned and real costs of the
# allocation items, in the general currency. A real total above the planned total is red, otherwise green.
#}
{% block publishStatus %}
{% set statusColors = {
'draft': 'warm-gray', 'planned': 'blue', 'active': 'green',
'paused': 'warning', 'completed': 'teal', 'archived': 'cool-gray',
} %}
{% include '@MauticCore/Helper/_tag.html.twig' with { tags: [{
color: statusColors[item.status.value]|default('gray'),
label: item.status.labelKey,
icon: 'ri-flag-line',
attributes: {'class': 'program-status-tag'},
}] } %}
{% set totals = item.allocationTotals %}
{% if totals.planned is not null or totals.real is not null %}
<div class="label__divider"></div>
{% set totalTags = [] %}
{% if totals.planned is not null %}
{% set totalTags = totalTags|merge([{
color: 'high-contrast',
icon: 'ri-wallet-3-line',
label: 'mt3s.marketing_program.header.total_planned'|trans({'%amount%': mt3s_marketing_program_money(totals.planned), '%currency%': mt3s_marketing_program_currency()}),
attributes: {'class': 'program-total-planned', 'title': 'mt3s.marketing_program.header.total_planned.tooltip'|trans, 'data-toggle': 'tooltip'},
}]) %}
{% endif %}
{% if totals.real is not null %}
{% set overPlan = totals.planned is not null and (totals.real + 0) > (totals.planned + 0) %}
{% set totalTags = totalTags|merge([{
color: overPlan ? 'red' : 'green',
icon: overPlan ? 'ri-error-warning-line' : 'ri-checkbox-circle-line',
label: 'mt3s.marketing_program.header.total_real'|trans({'%amount%': mt3s_marketing_program_money(totals.real), '%currency%': mt3s_marketing_program_currency()}),
attributes: {'class': 'program-total-real', 'title': (overPlan ? 'mt3s.marketing_program.header.total_real.over' : 'mt3s.marketing_program.header.total_real.tooltip')|trans, 'data-toggle': 'tooltip'},
}]) %}
{% endif %}
{% include '@MauticCore/Helper/_tag.html.twig' with { tags: totalTags } %}
{% endif %}
{% endblock %}
{% block actions %}
{{- include('@MauticCore/Helper/page_actions.html.twig', {
'item': item,
'templateButtons': {
'edit': securityHasEntityAccess(permissions['mt3smarketingprogram:programs:editown'], permissions['mt3smarketingprogram:programs:editother'], item.createdBy),
'delete': securityHasEntityAccess(permissions['mt3smarketingprogram:programs:deleteown'], permissions['mt3smarketingprogram:programs:deleteother'], item.createdBy),
},
'langVar': 'program',
}) -}}
{% endblock %}
{% block content %}
{% set objectives = item.objectives %}
{% set achievedCount = objectives|filter(o => o.achieved)|length %}
{% set descriptionItems = item.descriptionItems %}
{% set allocationItems = item.allocationItems %}
{% set allocationTotals = item.allocationTotals %}
{{ include('@MT3SMarketingProgram/Program/_tabs.html.twig', {'programId': item.id, 'counts': {
'description': descriptionItems|length,
'objectives': objectives|length,
'allocation': allocationItems|length,
'audiences': item.audiences|length,
'stakeholders': item.stakeholders|length,
'tasks': taskTree|length,
}}) }}
<div class="tab-content pa-md">
{# Details #}
<div class="tab-pane active bdr-w-0" id="program-tab-details" role="tabpanel">
<table class="table table-hover mb-0 program-details">
<tbody>
<tr>
<td class="col-md-3 text-muted">{{ 'mt3s.marketing_program.field.status'|trans }}</td>
<td>{{ item.status.labelKey|trans }}</td>
</tr>
{% if item.completedAt %}
<tr>
<td class="text-muted">{{ 'mt3s.marketing_program.field.completed_at'|trans }}</td>
<td>{{ dateToFull(item.completedAt) }}</td>
</tr>
{% endif %}
<tr>
<td class="text-muted">{{ 'mt3s.marketing_program.field.version'|trans }}</td>
<td>{{ item.version }}</td>
</tr>
<tr>
<td class="text-muted">{{ 'mt3s.marketing_program.field.owner'|trans }}</td>
<td>{{ item.owner ? item.owner.name : 'mt3s.marketing_program.owner.none'|trans }}</td>
</tr>
<tr>
<td class="text-muted">{{ 'mt3s.marketing_program.field.start_date'|trans }}</td>
<td>{{ item.startDate ? dateToFull(item.startDate) : 'mt3s.marketing_program.value.none'|trans }}</td>
</tr>
<tr>
<td class="text-muted">{{ 'mt3s.marketing_program.field.end_date'|trans }}</td>
<td>{{ item.endDate ? dateToFull(item.endDate) : 'mt3s.marketing_program.value.none'|trans }}</td>
</tr>
<tr>
<td class="text-muted">{{ 'mautic.core.category'|trans }}</td>
<td>{{ item.category ? item.category.title : 'mt3s.marketing_program.value.none'|trans }}</td>
</tr>
<tr>
<td class="text-muted">{{ 'mautic.core.form.available'|trans }}</td>
<td>{{ (item.isPublished ? 'mautic.core.form.yes' : 'mautic.core.form.no')|trans }}</td>
</tr>
<tr>
<td class="text-muted">{{ 'mautic.core.created'|trans }}</td>
<td>{{ item.dateAdded ? dateToFull(item.dateAdded) : '' }}{% if item.createdByUser %} ({{ item.createdByUser }}){% endif %}</td>
</tr>
{% if item.dateModified %}
<tr>
<td class="text-muted">{{ 'mautic.core.modified'|trans }}</td>
<td>{{ dateToFull(item.dateModified) }}{% if item.modifiedByUser %} ({{ item.modifiedByUser }}){% endif %}</td>
</tr>
{% endif %}
<tr>
<td class="text-muted">{{ 'mautic.core.id'|trans }}</td>
<td>{{ item.id }}</td>
</tr>
</tbody>
</table>
</div>
{# Description #}
<div class="tab-pane bdr-w-0" id="program-tab-description" role="tabpanel">
{% if descriptionItems is empty %}
<p class="text-muted">{{ 'mt3s.marketing_program.description_item.empty'|trans }}</p>
{% else %}
{# Harmonized columns: Pictogram (no label), Type, Description. Description items have no
name of their own, so the Name column is left out here. Filter + click-to-sort (mt3s-mp-program.js). #}
{{ include('@MT3SMarketingProgram/Program/_tab_table_filter.html.twig') }}
<div class="table-responsive">
<table class="table table-hover program-tab-table program-description-items-view"
data-program-tab-table data-empty-text="{{ 'mt3s.marketing_program.filter.no_match'|trans }}" data-sort-hint="{{ 'mt3s.marketing_program.filter.sort_hint'|trans }}">
<thead>
<tr>
<th class="program-col-pictogram" aria-label="{{ 'mt3s.marketing_program.description_item.field.pictogram'|trans }}"></th>
<th class="program-col-type">{{ 'mt3s.marketing_program.description_item.field.type'|trans }}</th>
<th class="program-col-description">{{ 'mt3s.marketing_program.description_item.field.description'|trans }}</th>
</tr>
</thead>
<tbody>
{% for descriptionItem in descriptionItems %}
{% set typeName = mt3s_marketing_program_item_type_name('description', descriptionItem.type) %}
{% set typeDescription = mt3s_marketing_program_item_type_description('description', descriptionItem.type) %}
{% set typeIcon = mt3s_marketing_program_item_type_icon('description', descriptionItem.type) %}
<tr>
<td class="program-col-pictogram text-center">
{% if typeIcon %}<i class="{{ typeIcon }} program-item-type-icon" style="font-size: 24px;" aria-hidden="true"></i>{% endif %}
</td>
<td class="program-col-type"{% if typeDescription %} title="{{ typeDescription }}" data-toggle="tooltip"{% endif %}>
{{ typeName ?? 'mt3s.marketing_program.description_item.type.unknown'|trans({'%key%': descriptionItem.type}) }}
</td>
<td class="program-col-description">
{{ include('@MT3SMarketingProgram/Program/_description_read_more.html.twig', {
'text': descriptionItem.description,
'id': 'program-desc-item-' ~ descriptionItem.id,
}) }}
</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
{% endif %}
</div>
{# Objectives #}
<div class="tab-pane bdr-w-0" id="program-tab-objectives" role="tabpanel">
{% if objectives is empty %}
<p class="text-muted">{{ 'mt3s.marketing_program.objective.empty'|trans }}</p>
{% else %}
<p class="text-muted program-objectives-progress">
{{ 'mt3s.marketing_program.objective.progress'|trans({'%achieved%': achievedCount, '%total%': objectives|length}) }}
</p>
{# Harmonized columns: Pictogram (no label), Type, Name (title), Description, Priority,
Status (achieved). Filter + click-to-sort (mt3s-mp-program.js). #}
{{ include('@MT3SMarketingProgram/Program/_tab_table_filter.html.twig') }}
<div class="table-responsive">
<table class="table table-hover program-tab-table program-objectives-view"
data-program-tab-table data-empty-text="{{ 'mt3s.marketing_program.filter.no_match'|trans }}" data-sort-hint="{{ 'mt3s.marketing_program.filter.sort_hint'|trans }}">
<thead>
<tr>
<th class="program-col-pictogram" aria-label="{{ 'mt3s.marketing_program.objective.field.pictogram'|trans }}"></th>
<th class="program-col-type">{{ 'mt3s.marketing_program.objective.field.type'|trans }}</th>
<th class="program-col-name">{{ 'mt3s.marketing_program.objective.field.name'|trans }}</th>
<th class="program-col-description">{{ 'mt3s.marketing_program.objective.field.description'|trans }}</th>
<th class="program-col-priority">{{ 'mt3s.marketing_program.objective.field.priority'|trans }}</th>
<th class="program-col-status">{{ 'mt3s.marketing_program.objective.field.is_achieved'|trans }}</th>
</tr>
</thead>
<tbody>
{% for objective in objectives %}
{% set typeName = mt3s_marketing_program_item_type_name('objective', objective.type) %}
{% set typeDescription = mt3s_marketing_program_item_type_description('objective', objective.type) %}
{% set typeIcon = mt3s_marketing_program_item_type_icon('objective', objective.type) %}
<tr>
<td class="program-col-pictogram text-center">
{% if typeIcon %}<i class="{{ typeIcon }} program-item-type-icon" style="font-size: 24px;" aria-hidden="true"></i>{% endif %}
</td>
<td class="program-col-type"{% if typeDescription %} title="{{ typeDescription }}" data-toggle="tooltip"{% endif %}>
{{ typeName ?? 'mt3s.marketing_program.description_item.type.unknown'|trans({'%key%': objective.type}) }}
</td>
<td class="program-col-name">{{ objective.title }}</td>
<td class="program-col-description text-muted" style="white-space: pre-wrap;">{{ objective.description|mt3s_marketing_program_linkify }}</td>
<td class="program-col-priority">{{ objective.priority ?? '—' }}</td>
<td class="program-col-status">
{% if objective.achieved %}
<span class="label label-success"><i class="ri-checkbox-circle-fill" title="{{ 'mt3s.marketing_program.objective.achieved'|trans }}"></i> {{ 'mt3s.marketing_program.objective.achieved'|trans }}</span>
{% else %}
<span class="label label-default"><i class="ri-checkbox-blank-circle-line" title="{{ 'mt3s.marketing_program.objective.not_achieved'|trans }}"></i> {{ 'mt3s.marketing_program.objective.not_achieved'|trans }}</span>
{% endif %}
</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
{% endif %}
</div>
{# Allocation: the program's budget, then the allocation items (cost lines) with their totals. #}
<div class="tab-pane bdr-w-0" id="program-tab-allocation" role="tabpanel">
<table class="table table-hover mb-md program-allocation">
<tbody>
<tr>
<td class="col-md-3 text-muted">{{ 'mt3s.marketing_program.field.budget_planned'|trans }}</td>
<td>
{% if item.budgetPlanned is not null %}
{{ mt3s_marketing_program_money(item.budgetPlanned) }} {{ mt3s_marketing_program_currency() }}
{% else %}
{{ 'mt3s.marketing_program.value.none'|trans }}
{% endif %}
</td>
</tr>
</tbody>
</table>
<h4 class="mb-sm">{{ 'mt3s.marketing_program.field.allocation_items'|trans }}</h4>
{% if allocationItems is empty %}
<p class="text-muted">{{ 'mt3s.marketing_program.allocation_item.empty'|trans }}</p>
{% else %}
{# Harmonized columns: Pictogram (no label), Type, Name, Description, then the costs.
Filter + click-to-sort (mt3s-mp-program.js). #}
{{ include('@MT3SMarketingProgram/Program/_tab_table_filter.html.twig') }}
<div class="table-responsive">
<table class="table table-hover program-tab-table program-allocation-items-view"
data-program-tab-table data-empty-text="{{ 'mt3s.marketing_program.filter.no_match'|trans }}" data-sort-hint="{{ 'mt3s.marketing_program.filter.sort_hint'|trans }}">
<thead>
<tr>
<th class="program-col-pictogram" aria-label="{{ 'mt3s.marketing_program.allocation_item.field.pictogram'|trans }}"></th>
<th class="program-col-type">{{ 'mt3s.marketing_program.allocation_item.field.type'|trans }}</th>
<th class="program-col-name">{{ 'mt3s.marketing_program.allocation_item.field.name'|trans }}</th>
<th class="program-col-description">{{ 'mt3s.marketing_program.allocation_item.field.description'|trans }}</th>
<th class="program-col-cost text-right">{{ 'mt3s.marketing_program.allocation_item.field.planned_cost'|trans }}</th>
<th class="program-col-cost text-right">{{ 'mt3s.marketing_program.allocation_item.field.real_cost'|trans }}</th>
</tr>
</thead>
<tbody>
{% for allocationItem in allocationItems %}
{% set typeName = mt3s_marketing_program_item_type_name('allocation', allocationItem.type) %}
{% set typeDescription = mt3s_marketing_program_item_type_description('allocation', allocationItem.type) %}
{% set typeIcon = mt3s_marketing_program_item_type_icon('allocation', allocationItem.type) %}
<tr>
<td class="program-col-pictogram text-center">
{% if typeIcon %}<i class="{{ typeIcon }} program-item-type-icon" style="font-size: 24px;" aria-hidden="true"></i>{% endif %}
</td>
<td class="program-col-type"{% if typeDescription %} title="{{ typeDescription }}" data-toggle="tooltip"{% endif %}>
{{ typeName ?? 'mt3s.marketing_program.description_item.type.unknown'|trans({'%key%': allocationItem.type}) }}
</td>
<td class="program-col-name">{{ allocationItem.name }}</td>
<td class="program-col-description text-muted" style="white-space: pre-wrap;">{{ allocationItem.description|mt3s_marketing_program_linkify }}</td>
<td class="program-col-cost text-right text-nowrap">
{% if allocationItem.plannedCost is not null %}{{ mt3s_marketing_program_money(allocationItem.plannedCost) }} {{ mt3s_marketing_program_currency() }}{% endif %}
</td>
<td class="program-col-cost text-right text-nowrap">
{% if allocationItem.realCost is not null %}{{ mt3s_marketing_program_money(allocationItem.realCost) }} {{ mt3s_marketing_program_currency() }}{% endif %}
</td>
</tr>
{% endfor %}
</tbody>
<tfoot>
<tr class="program-allocation-total">
<th colspan="4">{{ 'mt3s.marketing_program.allocation.total'|trans }}</th>
<th class="program-col-cost text-right text-nowrap">
{% if allocationTotals.planned is not null %}{{ mt3s_marketing_program_money(allocationTotals.planned) }} {{ mt3s_marketing_program_currency() }}{% endif %}
</th>
<th class="program-col-cost text-right text-nowrap">
{% if allocationTotals.real is not null %}{{ mt3s_marketing_program_money(allocationTotals.real) }} {{ mt3s_marketing_program_currency() }}{% endif %}
</th>
</tr>
</tfoot>
</table>
</div>
{% endif %}
</div>
{# Stakeholders: the program's links to the global directory, harmonized like the other tabs. #}
<div class="tab-pane bdr-w-0" id="program-tab-stakeholders" role="tabpanel">
{% set stakeholders = item.stakeholders %}
{% if stakeholders is empty %}
<p class="text-muted">{{ 'mt3s.marketing_program.stakeholder.empty'|trans }}</p>
{% else %}
{# Harmonized columns: Pictogram (no label), Type, Name, then the link's own fields.
Filter + click-to-sort (mt3s-mp-program.js). #}
{{ include('@MT3SMarketingProgram/Program/_tab_table_filter.html.twig') }}
<div class="table-responsive">
<table class="table table-hover program-tab-table marketing-program-stakeholders-view"
data-program-tab-table data-empty-text="{{ 'mt3s.marketing_program.filter.no_match'|trans }}" data-sort-hint="{{ 'mt3s.marketing_program.filter.sort_hint'|trans }}">
<thead>
<tr>
<th class="program-col-pictogram" aria-label="{{ 'mt3s.marketing_program.stakeholder.field.pictogram'|trans }}"></th>
<th class="program-col-type">{{ 'mt3s.marketing_program.stakeholder.field.type'|trans }}</th>
<th class="program-col-name">{{ 'mt3s.marketing_program.stakeholder.field.name'|trans }}</th>
<th class="program-col-role">{{ 'mt3s.marketing_program.stakeholder.field.role_in_program'|trans }}</th>
<th class="program-col-role">{{ 'mt3s.marketing_program.stakeholder.field.role'|trans }}</th>
<th class="program-col-email">{{ 'mt3s.marketing_program.stakeholder.field.email'|trans }}</th>
<th class="program-col-phone">{{ 'mt3s.marketing_program.stakeholder.field.phone'|trans }}</th>
<th class="program-col-active">{{ 'mt3s.marketing_program.stakeholder.field.active'|trans }}</th>
</tr>
</thead>
<tbody>
{% for link in stakeholders %}
{% set stakeholder = link.stakeholder %}
<tr>
<td class="program-col-pictogram text-center">
{% set typeIcon = mt3s_marketing_program_item_type_icon('stakeholder', stakeholder.type) %}
{% if typeIcon %}<i class="{{ typeIcon }} program-item-type-icon" style="font-size: 24px;" aria-hidden="true"></i>{% endif %}
</td>
<td class="program-col-type"{% if mt3s_marketing_program_item_type_description('stakeholder', stakeholder.type) %} title="{{ mt3s_marketing_program_item_type_description('stakeholder', stakeholder.type) }}" data-toggle="tooltip"{% endif %}>
{{ mt3s_marketing_program_item_type_name('stakeholder', stakeholder.type) ?? 'mt3s.marketing_program.description_item.type.unknown'|trans({'%key%': stakeholder.type}) }}
</td>
<td class="program-col-name">
<a href="{{ path('mt3s_marketing_program_stakeholder_action', {'objectAction': 'view', 'objectId': stakeholder.id}) }}" data-toggle="ajax">{{ stakeholder.name }}</a>
</td>
<td class="program-col-role">{{ link.roleInProgram }}</td>
<td class="program-col-role text-muted">{{ stakeholder.role }}</td>
<td class="program-col-email">
{% if stakeholder.email %}<a href="mailto:{{ stakeholder.email }}">{{ stakeholder.email }}</a>{% endif %}
</td>
<td class="program-col-phone text-nowrap">
{% if stakeholder.phone %}<a href="tel:{{ stakeholder.phone|replace({' ': ''}) }}">{{ stakeholder.phone }}</a>{% endif %}
</td>
<td class="program-col-active">
<span class="label {{ stakeholder.isPublished ? 'label-success' : 'label-gray' }}">
{{ (stakeholder.isPublished ? 'mt3s.marketing_program.stakeholder.active' : 'mt3s.marketing_program.stakeholder.inactive')|trans }}
</span>
</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
{% endif %}
</div>
{# Audiences: the program's links to the global directory (Programs > Audiences), harmonized like
the other tabs: pictogram, Type, Name (link to the audience's page), priority in this plan,
then the audience's own attributes. Filter + click-to-sort (mt3s-mp-program.js). #}
<div class="tab-pane bdr-w-0" id="program-tab-audiences" role="tabpanel">
{% set audiences = item.audiences %}
{% if audiences is empty %}
<p class="text-muted">{{ 'mt3s.marketing_program.audience.empty'|trans }}</p>
{% else %}
{{ include('@MT3SMarketingProgram/Program/_tab_table_filter.html.twig') }}
<div class="table-responsive">
<table class="table table-hover program-tab-table marketing-program-audiences-view"
data-program-tab-table data-empty-text="{{ 'mt3s.marketing_program.filter.no_match'|trans }}" data-sort-hint="{{ 'mt3s.marketing_program.filter.sort_hint'|trans }}">
<thead>
<tr>
<th class="program-col-pictogram" aria-label="{{ 'mt3s.marketing_program.audience.field.pictogram'|trans }}"></th>
<th class="program-col-type">{{ 'mt3s.marketing_program.audience.field.type'|trans }}</th>
<th class="program-col-name">{{ 'mt3s.marketing_program.audience.field.name'|trans }}</th>
<th class="program-col-priority">{{ 'mt3s.marketing_program.audience.field.priority'|trans }}</th>
<th class="program-col-stages">{{ 'mt3s.marketing_program.audience.field.stages'|trans }}</th>
<th class="program-col-size text-right">{{ 'mt3s.marketing_program.audience.field.estimated_size'|trans }}</th>
<th class="program-col-description">{{ 'mt3s.marketing_program.audience.field.value_proposition'|trans }}</th>
<th class="program-col-channels">{{ 'mt3s.marketing_program.audience.field.preferred_channels'|trans }}</th>
</tr>
</thead>
<tbody>
{% for link in audiences %}
{% set audience = link.audience %}
<tr>
<td class="program-col-pictogram text-center">
<i class="{{ audience.audienceType.icon }} program-item-type-icon" style="font-size: 24px;" aria-hidden="true"></i>
</td>
<td class="program-col-type">{{ audience.audienceType.labelKey|trans }}</td>
<td class="program-col-name">
<a href="{{ path('mt3s_marketing_program_audience_action', {'objectAction': 'view', 'objectId': audience.id}) }}" data-toggle="ajax">{{ audience.name }}</a>
</td>
<td class="program-col-priority">
<span class="label {{ link.priority.labelClass }}">{{ link.priority.labelKey|trans }}</span>
</td>
<td class="program-col-stages text-muted">
{{ audience.stages|map(stage => stage.name)|join(', ') }}
</td>
<td class="program-col-size text-right text-nowrap">{{ audience.estimatedSize }}</td>
<td class="program-col-description text-muted" style="white-space: pre-wrap;">{{ link.valueProposition }}</td>
<td class="program-col-channels">
{% for channel in audience.preferredChannels ?? [] %}
<span class="label label-default">{{ mt3s_marketing_program_audience_channel_label(channel)|trans }}</span>
{% endfor %}
</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
{% endif %}
</div>
{# Tasks: same columns as Programs > Tasks, in tree order. #}
<div class="tab-pane bdr-w-0" id="program-tab-tasks" role="tabpanel">
{{ include('@MT3SMarketingProgram/Program/_task_table.html.twig', {
'program': item,
'taskTree': taskTree,
'taskPermissions': taskPermissions,
}) }}
</div>
</div>
{% endblock %}