From 52f1d986ac04d1f153ee96ae5d961053b153e935 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Munsch?= Date: Mon, 25 Oct 2021 13:27:37 +0200 Subject: [PATCH] Ajout type BR --- app/Enums/TicketType.php | 3 +++ resources/views/ticket/index.blade.php | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/app/Enums/TicketType.php b/app/Enums/TicketType.php index ad3589c..5a97fba 100644 --- a/app/Enums/TicketType.php +++ b/app/Enums/TicketType.php @@ -7,6 +7,7 @@ use Kwaadpepper\Enum\BaseEnumRoutable; /** * @method static self bug() * @method static self evolution() + * @method static self br() */ class TicketType extends BaseEnumRoutable { @@ -15,6 +16,7 @@ class TicketType extends BaseEnumRoutable return [ 'bug' => 0, 'evolution' => 1, + 'br' => 2, ]; } @@ -23,6 +25,7 @@ class TicketType extends BaseEnumRoutable return [ 'bug' => trans('Bug'), 'evolution' => trans('Évolution'), + 'br' => trans('Demande relative aux BR'), ]; } } diff --git a/resources/views/ticket/index.blade.php b/resources/views/ticket/index.blade.php index 4d861e8..d051696 100644 --- a/resources/views/ticket/index.blade.php +++ b/resources/views/ticket/index.blade.php @@ -97,7 +97,7 @@ $userPr = Auth::user()->sites ?? collect([]); {{ $ticket->site->name }} - {{ $ticket->type->label }} + {{ $ticket->type->label }} @if ($ticket->file !== null) @@ -134,7 +134,7 @@ $userPr = Auth::user()->sites ?? collect([]);