diff --git a/app/Enums/Planning/ActivityType.php b/app/Enums/Planning/ActivityType.php index e237e20..aa48140 100644 --- a/app/Enums/Planning/ActivityType.php +++ b/app/Enums/Planning/ActivityType.php @@ -14,6 +14,7 @@ use Kwaadpepper\Enum\BaseEnumRoutable; * @method static self projects() * @method static self management() * @method static self absence() + * @method static self leaddev() * */ class ActivityType extends BaseEnumRoutable @@ -32,6 +33,7 @@ class ActivityType extends BaseEnumRoutable 'projects' => trans('Projets & Réunions'), 'management' => trans('Organisation management'), 'absence' => trans('Absence'), + 'leaddev' => trans('Lead Dev') ]; } @@ -48,7 +50,8 @@ class ActivityType extends BaseEnumRoutable 'dev' => '#00b0f0', 'projects' => '#ffe699', 'management' => '#f4b084', - 'absence' => '#aeaaaa' + 'absence' => '#aeaaaa', + 'leaddev' => '#ff7979' ]; } } diff --git a/app/Enums/Planning/CellType.php b/app/Enums/Planning/CellType.php index 896b14c..f9a8679 100644 --- a/app/Enums/Planning/CellType.php +++ b/app/Enums/Planning/CellType.php @@ -14,6 +14,7 @@ use Kwaadpepper\Enum\BaseEnumRoutable; * @method static self projects() * @method static self management() * @method static self absence() + * @method static self leaddev() */ class CellType extends BaseEnumRoutable { @@ -30,7 +31,8 @@ class CellType extends BaseEnumRoutable 'dev' => '#00b0f0', 'projects' => '#ffe699', 'management' => '#f4b084', - 'absence' => '#aeaaaa' + 'absence' => '#aeaaaa', + 'leaddev' => '#ff7979' ]; } @@ -48,6 +50,7 @@ class CellType extends BaseEnumRoutable 'projects' => trans('Projets & Réunions'), 'management' => trans('Organisation management'), 'absence' => trans('Absence'), + 'leaddev' => trans('Lead Dev') ]; } } diff --git a/resources/views/schedule/index.blade.php b/resources/views/schedule/index.blade.php index bf0f400..e5bed39 100644 --- a/resources/views/schedule/index.blade.php +++ b/resources/views/schedule/index.blade.php @@ -55,6 +55,9 @@ .absence, .Sat, .Sun { background-color: {{CellType::absence()->value}} !important; } + .leaddev { + background-color: {{CellType::leaddev()->value}} !important; + } .empty { background-color: #FFF !important; }