refactor(plugin): rename Plan to Program and add audience/UTM routes
Rename the Plan bundle to Program across config, routes, menus, and controllers (Plan -> Initiative), bump version to 0.16.0, and introduce new audience and UTM taxonomy routes and permissions to support the expanded Programs feature set.
This commit is contained in:
1 parent
8268fad886
commit
71ff11390b
121 files changed
+5011
-2874
No files matched your search
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace MauticPlugin\ProgramBundle\Entity;
|
||||
|
||||
enum InitiativeStatus: string
|
||||
{
|
||||
case Draft = 'draft';
|
||||
case Planned = 'planned';
|
||||
case Active = 'active';
|
||||
case Paused = 'paused';
|
||||
case Completed = 'completed';
|
||||
case Archived = 'archived';
|
||||
|
||||
public function getLabelKey(): string
|
||||
{
|
||||
return 'mautic.program.status.'.$this->value;
|
||||
}
|
||||
|
||||
/**
|
||||
* The Bootstrap class of the status label in the tables (the initiative's Status column).
|
||||
*/
|
||||
public function getLabelClass(): string
|
||||
{
|
||||
return match ($this) {
|
||||
self::Active => 'label-success',
|
||||
self::Completed => 'label-info',
|
||||
self::Paused => 'label-warning',
|
||||
self::Archived => 'label-default',
|
||||
self::Draft, self::Planned => 'label-primary',
|
||||
};
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user