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

+97 -3
View File
@@ -5,14 +5,93 @@ mautic.plan.menu.index="Plans"
mautic.plan.tab.details="Details"
mautic.plan.tab.description="Description"
mautic.plan.tab.objectives="Objectives"
mautic.plan.tab.allocation="Allocation"
mautic.plan.tab.allocations="Allocations"
mautic.plan.tab.targets="Targets"
mautic.plan.tab.stakeholders="Stakeholders"
mautic.plan.tab.tasks="Tasks"
mautic.plan.value.none="None"
mautic.plan.target.empty="No targets yet."
mautic.plan.task.empty="No tasks yet."
; Stakeholders (the global directory, Planning > Stakeholders, and the plan's Stakeholders tab).
mautic.plan.field.stakeholders="Stakeholders"
mautic.plan.stakeholder.menu.index="Stakeholders"
mautic.plan.stakeholder.header.index="Stakeholders"
mautic.plan.stakeholder.header.new="New stakeholder"
mautic.plan.stakeholder.header.edit="Edit stakeholder - %name%"
mautic.plan.stakeholder.error.notfound="No stakeholder with the ID %id% was found."
mautic.plan.stakeholder.form.confirmdelete="Delete the stakeholder, %name%? Its links to the plans are deleted too."
mautic.plan.stakeholder.form.confirmbatchdelete="Delete the selected stakeholders? Their links to the plans are deleted too."
mautic.plan.stakeholder.onboarding.heading="No stakeholders yet"
mautic.plan.stakeholder.onboarding.subheading="Stakeholders are the people, companies and teams involved in your plans."
mautic.plan.stakeholder.onboarding.copy="Use the New button above to add a stakeholder to the directory. Then assign it to a plan from the plan's Stakeholders tab, with its role in that plan."
mautic.plan.stakeholder.field.pictogram="Pictogram"
mautic.plan.stakeholder.field.name="Name"
mautic.plan.stakeholder.field.email="Email"
mautic.plan.stakeholder.field.phone="Phone"
mautic.plan.stakeholder.field.role="Role"
mautic.plan.stakeholder.field.type="Type"
mautic.plan.stakeholder.field.active="Active"
mautic.plan.stakeholder.field.role_in_plan="Role in the plan"
mautic.plan.stakeholder.field.plans="Assigned plans"
mautic.plan.stakeholder.active="Active"
mautic.plan.stakeholder.inactive="Inactive"
mautic.plan.stakeholder.no_plans="Not assigned to any plan"
mautic.plan.stakeholder.add="Add stakeholder"
mautic.plan.stakeholder.remove="Remove stakeholder"
mautic.plan.stakeholder.drag="Drag to reorder"
mautic.plan.stakeholder.empty="No stakeholders assigned to this plan yet."
mautic.plan.stakeholder.phone.help="Typed without a country prefix, the number is read with the default region from Settings > Configuration > Plan Settings."
; Stakeholder types (Settings > Configuration > Plan Settings).
mautic.plan.config.section.stakeholder_types="Stakeholder types"
mautic.plan.config.section.stakeholder_types.help="The types offered for the stakeholders of the directory (Planning > Stakeholders), in this order. Give each type a name and a description in each language, and a pictogram; the default language is required. Users see their own language, or the default language when it's empty."
mautic.plan.config.stakeholder_phone_region="Default phone region"
mautic.plan.config.stakeholder_phone_region.tooltip="ISO country code (e.g. FR) used to read stakeholder phone numbers typed without a country prefix."
; Targets (the plan's Targets tab).
mautic.plan.field.targets="Targets"
mautic.plan.target.field.pictogram="Pictogram"
mautic.plan.target.field.name="Name"
mautic.plan.target.field.type="Type"
mautic.plan.target.field.priority="Priority"
mautic.plan.target.field.stages="Stages"
mautic.plan.target.field.estimated_size="Estimated size"
mautic.plan.target.field.profile_criteria="Profile criteria"
mautic.plan.target.field.pain_points="Pain points"
mautic.plan.target.field.value_proposition="Value proposition"
mautic.plan.target.field.preferred_channels="Preferred channels"
mautic.plan.target.add="Add target"
mautic.plan.target.remove="Remove target"
mautic.plan.target.drag="Drag to reorder"
mautic.plan.target.type.persona="Buyer Persona"
mautic.plan.target.type.icp="Account / ICP"
mautic.plan.target.type.broad_audience="Broad / Ad Audience"
mautic.plan.target.type.lifecycle_cohort="Lifecycle Cohort"
mautic.plan.target.type.partner_influencer="Partner / Influencer"
mautic.plan.target.priority.primary="Primary Target"
mautic.plan.target.priority.secondary="Secondary Target"
mautic.plan.target.priority.exclusion="Exclusion / Anti-Persona"
mautic.plan.target.channel.email="Email"
mautic.plan.target.channel.sms="SMS"
mautic.plan.target.channel.web="Web"
mautic.plan.target.channel.social_organic="Social organic"
mautic.plan.target.channel.paid_social="Paid social"
mautic.plan.target.channel.paid_search="Paid search"
mautic.plan.target.channel.events_webinar="Events / webinar"
mautic.plan.target.channel.outbound_sales="Outbound sales"
mautic.plan.target.channel.partners="Partners"
; Plan tab tables (detail page): filter box and click-to-sort headers.
mautic.plan.filter.placeholder="Filter…"
mautic.plan.filter.no_match="No rows match the filter."
mautic.plan.filter.sort_hint="Click to sort"
; Long description item texts, clamped to 10 lines (Description tab, detail page).
mautic.plan.read_more.more="Read more"
mautic.plan.read_more.less="Show less"
mautic.plan.header.index="Plans"
mautic.plan.header.new="New plan"
mautic.plan.header.edit="Edit plan - %name%"
@@ -46,6 +125,8 @@ mautic.plan.task.onboarding.heading="No tasks yet"
mautic.plan.task.onboarding.subheading="Tasks break a plan down into work to do."
mautic.plan.task.onboarding.copy="Use the New button above, or Add task on a plan's Tasks tab. A task belongs to one plan and can be a sub-task of another task in the same plan."
mautic.plan.task.field.name="Name"
mautic.plan.task.field.type="Type"
mautic.plan.task.field.pictogram="Pictogram"
mautic.plan.task.field.description="Description"
mautic.plan.task.field.plan="Plan"
mautic.plan.task.field.parent="Parent task"
@@ -75,12 +156,17 @@ mautic.plan.field.description_items="Description items"
mautic.plan.field.allocation_items="Allocation items"
mautic.plan.objective.field.title="Title"
mautic.plan.objective.field.type="Type"
mautic.plan.objective.field.pictogram="Pictogram"
mautic.plan.objective.field.name="Name"
mautic.plan.objective.field.priority="Priority"
mautic.plan.objective.field.description="Description"
mautic.plan.objective.field.is_achieved="Achieved"
mautic.plan.objective.add="Add objective"
mautic.plan.objective.remove="Remove objective"
mautic.plan.objective.drag="Drag to reorder"
mautic.plan.objective.empty="No objectives yet."
mautic.plan.objective.no_types="No objective types are set up yet. An administrator can add them in Settings > Configuration > Plan Settings."
mautic.plan.objective.progress="%achieved% of %total% achieved"
mautic.plan.objective.achieved="Achieved"
mautic.plan.objective.not_achieved="Not achieved"
@@ -116,7 +202,7 @@ mautic.plan.config.type.language="Language"
mautic.plan.config.type.name="Name"
mautic.plan.config.type.description="Description"
; Allocation items (the plan's Allocation tab).
; Allocation items (the plan's Allocations tab).
mautic.plan.allocation_item.field.type="Type"
mautic.plan.allocation_item.field.pictogram="Pictogram"
mautic.plan.allocation_item.field.name="Name"
@@ -141,7 +227,15 @@ mautic.plan.task.subtask_of="Sub-task of %parent%"
mautic.plan.task.subtasks="Number of sub-tasks"
mautic.plan.config.section.allocation_item_types="Allocation item types"
mautic.plan.config.section.allocation_item_types.help="The types offered for the cost lines of a plan's Allocation tab, in this order. Give each type a name and a description in each language, and a pictogram; the default language is required. Users see their own language, or the default language when it's empty."
mautic.plan.config.section.allocation_item_types.help="The types offered for the cost lines of a plan's Allocations tab, in this order. Give each type a name and a description in each language, and a pictogram; the default language is required. Users see their own language, or the default language when it's empty."
; Objective types (Settings > Configuration > Plan Settings).
mautic.plan.config.section.objective_types="Objective types"
mautic.plan.config.section.objective_types.help="The types offered for the objectives of a plan's Objectives tab, in this order. Give each type a name and a description in each language, and a pictogram; the default language is required. Users see their own language, or the default language when it's empty."
; Task types (Settings > Configuration > Plan Settings).
mautic.plan.config.section.task_types="Task types"
mautic.plan.config.section.task_types.help="The types offered for tasks, in this order. Give each type a name and a description in each language, and a pictogram; the default language is required. Users see their own language, or the default language when it's empty."
mautic.plan.description_item.field.pictogram="Pictogram"
mautic.plan.config.section.general="General"
+8 -1
View File
@@ -2,10 +2,17 @@ mautic.plan.owner.required="An owner is required."
mautic.plan.end_date.before_start_date="The end date must be on or after the start date."
mautic.plan.version.range="The version must be a whole number from 1 to 99."
mautic.plan.objective.title.required="An objective needs a title."
mautic.plan.objective.type.required="Choose a type."
mautic.plan.objective.priority.range="The priority must be a whole number from 1 to 99."
mautic.plan.target.name.required="A target needs a name."
mautic.plan.target.estimated_size.invalid="The estimated size must be 0 or more."
mautic.plan.stakeholder.email.invalid="This email address is not valid."
mautic.plan.stakeholder_link.stakeholder.required="Choose a stakeholder."
mautic.plan.task.plan.required="A task must be assigned to a plan."
mautic.plan.task.type.required="Choose a type."
mautic.plan.task.parent.other_plan="The parent task must be in the same plan."
mautic.plan.task.parent.loop="A task can't be its own parent, or a sub-task of one of its sub-tasks."
mautic.plan.description_item.type.required="Choose a type."
mautic.plan.config.type.name.required="A type needs a name in the default language."
mautic.plan.config.type.in_use="These types are used by description items and can't be removed: %types%. Change those items to another type first."
mautic.plan.config.type.in_use="These types are in use and can't be removed: %types%. Change the items or tasks that use them to another type first."
mautic.plan.allocation_item.type.required="Choose a type."