- 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.
33 lines
1.4 KiB
Twig
33 lines
1.4 KiB
Twig
{#
|
|
# Tab bar shared by the plan form and the plan detail page.
|
|
#
|
|
# Parameters:
|
|
# planId: the plan's id (null for a new plan)
|
|
# counts (optional): tab id => number shown next to the tab name
|
|
#
|
|
# The tab panes use the ids plan-tab-<id>. Assets/js/plan.js reopens the tab last used for this plan
|
|
# (so Edit, Save and Cancel keep the same tab), and on the form marks the tabs whose pane contains a
|
|
# validation error and opens the first of them.
|
|
#}
|
|
{% set planTabs = {
|
|
'details': 'mautic.plan.tab.details',
|
|
'description': 'mautic.plan.tab.description',
|
|
'objectives': 'mautic.plan.tab.objectives',
|
|
'allocation': 'mautic.plan.tab.allocations',
|
|
'targets': 'mautic.plan.tab.targets',
|
|
'stakeholders': 'mautic.plan.tab.stakeholders',
|
|
'tasks': 'mautic.plan.tab.tasks',
|
|
} %}
|
|
<ul class="nav nav-tabs nav-tabs-contained tabs-horizontal plan-tabs" role="tablist" data-plan-id="{{ planId|default('') }}">
|
|
{% for id, label in planTabs %}
|
|
<li class="{{ loop.first ? 'active' : '' }}" data-tab-id="plan-tab-{{ id }}">
|
|
<a href="#plan-tab-{{ id }}" role="tab" data-toggle="tab">
|
|
<span>{{ label|trans }}</span>
|
|
{% if counts is defined and counts[id] is defined %}
|
|
<span class="badge">{{ counts[id] }}</span>
|
|
{% endif %}
|
|
</a>
|
|
</li>
|
|
{% endfor %}
|
|
</ul>
|