feat: Add TargetType form and migration for plan targets

- Implemented TargetType form for managing target details including name, type, priority, stages, estimated size, profile criteria, pain points, value proposition, and preferred channels.
- Created migration scripts for adding type and priority columns to plan objectives and tasks.
- Added migration for creating plan targets and plan target stages tables, including foreign key constraints.
- Introduced stakeholder management with forms and views for creating, editing, and listing stakeholders.
- Enhanced UI with read more functionality for long text descriptions and filtering options in plan tab tables.
This commit is contained in:
Alexandre Gain committed 2026-11-08 11:54:25 +01:00
1 parent 8c8d7a6f95
commit 8696acd01c
52 files changed
+3178 -125

No files matched your search

+20 -2
View File
@@ -34,13 +34,24 @@
'checkall': 'true',
'target': '#planTaskTable',
}) }}
{# Columns: ID, Name, Description, Start date, End date, Status. #}
{# Columns: ID, Pictogram, Type, Name, Description, Start date, End date, Status. #}
{{ include('@MauticCore/Helper/tableheader.html.twig', {
'sessionVar': 'plan.task',
'orderBy': 't.id',
'text': 'mautic.core.id',
'class': 'col-plan-task-id',
}) }}
{{ include('@MauticCore/Helper/tableheader.html.twig', {
'sessionVar': 'plan.task',
'text': 'mautic.plan.task.field.pictogram',
'class': 'col-plan-task-pictogram',
}) }}
{{ include('@MauticCore/Helper/tableheader.html.twig', {
'sessionVar': 'plan.task',
'orderBy': 't.type',
'text': 'mautic.plan.task.field.type',
'class': 'col-plan-task-type',
}) }}
{{ include('@MauticCore/Helper/tableheader.html.twig', {
'sessionVar': 'plan.task',
'orderBy': 't.name',
@@ -88,6 +99,13 @@
}) -}}
</td>
<td>{{ item.id }}</td>
<td class="text-center">
{% set typeIcon = plan_item_type_icon('task', item.type) %}
{% if typeIcon %}<i class="{{ typeIcon }} plan-item-type-icon" style="font-size: 24px;" aria-hidden="true"></i>{% endif %}
</td>
<td{% if plan_item_type_description('task', item.type) %} title="{{ plan_item_type_description('task', item.type) }}"{% endif %}>
{{ plan_item_type_name('task', item.type) ?? 'mautic.plan.description_item.type.unknown'|trans({'%key%': item.type}) }}
</td>
<td>
{% if canEdit %}
<a href="{{ path('plan_task_action', {'objectAction': 'edit', 'objectId': item.id}) }}" data-toggle="ajax">{{ item.name }}</a>
@@ -97,7 +115,7 @@
</td>
<td class="visible-md visible-lg text-muted">
{% set description = item.description|default('')|striptags|trim %}
{{ description|length > 120 ? description|slice(0, 120) ~ '…' : description }}
{{ (description|length > 120 ? description|slice(0, 120) ~ '…' : description)|plan_linkify }}
</td>
<td>{{ item.startDate ? dateToFull(item.startDate) : '' }}</td>
<td>{{ item.endDate ? dateToFull(item.endDate) : '' }}</td>