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:
Alexandre Gain committed 2026-11-15 17:48:01 +01:00
1 parent 687d33d30c
commit ea88b7a772
131 files changed
+3238 -2836

No files matched your search

+34 -34
View File
@@ -1,23 +1,23 @@
{% extends '@MauticCore/Default/content.html.twig' %}
{% block mauticContent %}programTask{% endblock %}
{% block mauticContent %}mt3sMpProgramTask{% endblock %}
{% block headerTitle %}
{% if entity.id %}
{{ 'mautic.program.task.header.edit'|trans({'%name%': entity.name}) }}
{{ 'mt3s.marketing_program.task.header.edit'|trans({'%name%': entity.name}) }}
{% else %}
{{ 'mautic.program.task.header.new'|trans }}
{{ 'mt3s.marketing_program.task.header.new'|trans }}
{% endif %}
{% endblock %}
{# The dependencies and the RACI rows: the same editable, sortable rows as the initiative form's
collections. Adding, removing and reordering is handled by Assets/js/program.js through the
initiative-collection-* classes. #}
{# The dependencies and the RACI rows: the same editable, sortable rows as the program form's
collections. Adding, removing and reordering is handled by Assets/js/mt3s-mp-program.js through the
program-collection-* classes. #}
{% macro dependency_row(dependency) %}
<li class="initiative-collection-row list-group-item">
<li class="program-collection-row list-group-item">
<div class="row">
<div class="col-xs-1 text-center">
<span class="initiative-collection-handle text-muted" title="{{ 'mautic.program.task.dependency.drag'|trans }}" style="cursor: move;">
<span class="program-collection-handle text-muted" title="{{ 'mt3s.marketing_program.task.dependency.drag'|trans }}" style="cursor: move;">
<i class="ri-draggable ri-lg"></i>
</span>
</div>
@@ -29,7 +29,7 @@
{{ form_widget(dependency.position) }}
</div>
<div class="col-xs-1 text-right">
<button type="button" class="btn btn-ghost btn-sm initiative-collection-remove" title="{{ 'mautic.program.task.dependency.remove'|trans }}">
<button type="button" class="btn btn-ghost btn-sm program-collection-remove" title="{{ 'mt3s.marketing_program.task.dependency.remove'|trans }}">
<i class="ri-delete-bin-line"></i>
</button>
</div>
@@ -38,10 +38,10 @@
{% endmacro %}
{% macro raci_row(raci) %}
<li class="initiative-collection-row list-group-item">
<li class="program-collection-row list-group-item">
<div class="row">
<div class="col-xs-1 text-center">
<span class="initiative-collection-handle text-muted" title="{{ 'mautic.program.task.raci.drag'|trans }}" style="cursor: move;">
<span class="program-collection-handle text-muted" title="{{ 'mt3s.marketing_program.task.raci.drag'|trans }}" style="cursor: move;">
<i class="ri-draggable ri-lg"></i>
</span>
</div>
@@ -53,7 +53,7 @@
{{ form_widget(raci.position) }}
</div>
<div class="col-xs-1 text-right">
<button type="button" class="btn btn-ghost btn-sm initiative-collection-remove" title="{{ 'mautic.program.task.raci.remove'|trans }}">
<button type="button" class="btn btn-ghost btn-sm program-collection-remove" title="{{ 'mt3s.marketing_program.task.raci.remove'|trans }}">
<i class="ri-delete-bin-line"></i>
</button>
</div>
@@ -68,14 +68,14 @@
<div class="pa-md">
{{ form_row(form.name) }}
<div class="row">
{# The selected type's pictogram; updated by program.js when the type changes. #}
{# The selected type's pictogram; updated by mt3s-mp-program.js when the type changes. #}
<div class="col-xs-1 text-center pt-lg">
<i class="initiative-item-type-icon {{ program_item_type_icon('task', form.type.vars.value) }}" style="font-size: 28px;" aria-hidden="true"></i>
<i class="program-item-type-icon {{ mt3s_marketing_program_item_type_icon('task', form.type.vars.value) }}" style="font-size: 28px;" aria-hidden="true"></i>
</div>
<div class="col-xs-11">
{{ form_row(form.type) }}
{# Filled with the selected type's description by program.js. #}
<p class="help-block initiative-item-type-help">{{ program_item_type_description('task', form.type.vars.value) }}</p>
{# Filled with the selected type's description by mt3s-mp-program.js. #}
<p class="help-block program-item-type-help">{{ mt3s_marketing_program_item_type_description('task', form.type.vars.value) }}</p>
</div>
</div>
{{ form_row(form.description) }}
@@ -84,7 +84,7 @@
</div>
<div class="col-md-3 height-auto">
<div class="pr-lg pl-lg pt-md pb-md">
{{ form_row(form.initiative) }}
{{ form_row(form.program) }}
{{ form_row(form.taskKind) }}
{{ form_row(form.startDate) }}
{{ form_row(form.endDate) }}
@@ -92,7 +92,7 @@
{{ form_row(form.status) }}
{% else %}
{# A phase has no status of its own: its state comes from its tasks. #}
<p class="text-muted small">{{ 'mautic.program.task.kind.phase_status_note'|trans }}</p>
<p class="text-muted small">{{ 'mt3s.marketing_program.task.kind.phase_status_note'|trans }}</p>
{% endif %}
{{ form_row(form.plannedWork) }}
</div>
@@ -100,42 +100,42 @@
</div>
<div class="pa-md">
<div class="col-md-12">
{# Dependencies: several edges, each another task of the initiative with the relation type. #}
<div class="initiative-collection initiative-task-dependencies"
{# Dependencies: several edges, each another task of the program with the relation type. #}
<div class="program-collection program-task-dependencies"
data-prototype="{{ _self.dependency_row(form.dependencies.vars.prototype)|e('html_attr') }}"
data-prototype-name="__dependency__">
<h4 class="mt-lg mb-sm">{{ 'mautic.program.task.field.dependencies'|trans }}</h4>
<h4 class="mt-lg mb-sm">{{ 'mt3s.marketing_program.task.field.dependencies'|trans }}</h4>
{{ form_errors(form.dependencies) }}
<p class="text-muted initiative-collection-empty{% if form.dependencies|length > 0 %} hide{% endif %}">
{{ 'mautic.program.task.dependency.empty'|trans }}
<p class="text-muted program-collection-empty{% if form.dependencies|length > 0 %} hide{% endif %}">
{{ 'mt3s.marketing_program.task.dependency.empty'|trans }}
</p>
<ul class="list-group initiative-collection-list">
<ul class="list-group program-collection-list">
{% for dependency in form.dependencies %}
{{ _self.dependency_row(dependency) }}
{% endfor %}
</ul>
<button type="button" class="btn btn-ghost initiative-collection-add">
<i class="ri-add-line"></i> {{ 'mautic.program.task.dependency.add'|trans }}
<button type="button" class="btn btn-ghost program-collection-add">
<i class="ri-add-line"></i> {{ 'mt3s.marketing_program.task.dependency.add'|trans }}
</button>
</div>
{% do form.dependencies.setRendered %}
{# RACI: one row per role, several stakeholders per role, picked from the initiative's. #}
<div class="initiative-collection initiative-task-raci"
{# RACI: one row per role, several stakeholders per role, picked from the program's. #}
<div class="program-collection program-task-raci"
data-prototype="{{ _self.raci_row(form.raci.vars.prototype)|e('html_attr') }}"
data-prototype-name="__raci__">
<h4 class="mt-lg mb-sm">{{ 'mautic.program.task.field.raci'|trans }}</h4>
<h4 class="mt-lg mb-sm">{{ 'mt3s.marketing_program.task.field.raci'|trans }}</h4>
{{ form_errors(form.raci) }}
<p class="text-muted initiative-collection-empty{% if form.raci|length > 0 %} hide{% endif %}">
{{ 'mautic.program.task.raci.empty'|trans }}
<p class="text-muted program-collection-empty{% if form.raci|length > 0 %} hide{% endif %}">
{{ 'mt3s.marketing_program.task.raci.empty'|trans }}
</p>
<ul class="list-group initiative-collection-list">
<ul class="list-group program-collection-list">
{% for raci in form.raci %}
{{ _self.raci_row(raci) }}
{% endfor %}
</ul>
<button type="button" class="btn btn-ghost initiative-collection-add">
<i class="ri-add-line"></i> {{ 'mautic.program.task.raci.add'|trans }}
<button type="button" class="btn btn-ghost program-collection-add">
<i class="ri-add-line"></i> {{ 'mt3s.marketing_program.task.raci.add'|trans }}
</button>
</div>
{% do form.raci.setRendered %}