Enhance visual tickets display

This commit is contained in:
Jérémy Munsch 2022-06-15 18:07:44 +02:00
parent b3c87ac735
commit abcee7b301
No known key found for this signature in database
GPG key ID: 18361AF3BFEC0FEC
3 changed files with 7 additions and 3 deletions

View file

@ -9,6 +9,7 @@
<a href="{{ route('ticket.show', $ticket) }}" class="text-decoration-none btn btn-sm btn-primary" role="button" aria-roledescription="{{ _('Revenir en arrière') }}"><i class="fa-solid fa-arrow-left-long"></i></a>
{{ $ticket->full_name }}
@if ($ticket->is_internal)<i class="fa-solid fa-lock"></i>@endif
<span class="badge {{ $ticket->type->class }}">{{ $ticket->type->label }}</span>
&nbsp;<span class="text-decoration-underline">{{ __('Créer une estimation') }}</span>
</h2>
</div>

View file

@ -7,7 +7,10 @@
<div class="card-header">
<h2 class="col h4">
<a href="{{ route('ticket.index') }}" class="text-decoration-none btn btn-sm btn-primary" role="button" aria-roledescription="{{ _('Revenir en arrière') }}"><i class="fa-solid fa-arrow-left-long"></i></a>
<span>&nbsp;{{ __('Modifier un ticket') }}</span>
<span>&nbsp;{{ __('Modifier un ticket') }}</span> -
{{ $ticket->full_name }}
@if ($ticket->is_internal)<i class="fa-solid fa-lock"></i>@endif
<span class="badge {{ $ticket->type->class }}">{{ $ticket->type->label }}</span>
</h2>
</div>
<div class="card-body">

View file

@ -8,7 +8,7 @@
<a href="{{ route('ticket.index') }}" class="text-decoration-none btn btn-sm btn-primary" role="button" aria-roledescription="{{ _('Revenir en arrière') }}"><i class="fa-solid fa-arrow-left-long"></i></a>
{{ $ticket->full_name }}
@if ($ticket->is_internal)<i class="fa-solid fa-lock"></i>@endif
<span class="badge bg-info">{{ $ticket->status->label }}</span>
<span class="badge {{ $ticket->type->class }}">{{ $ticket->type->label }}</span>
</h2>
<div class="col d-flex flex-row text-end">
@can('suscribeToTicket', $ticket)
@ -102,7 +102,7 @@
<input type="hidden" name="ticket_id" value="{{ $ticket->id }}">
<div class="modal-header">
<h5 class="modal-title" id="messageModalLabel">
{{ __('Répondre au ticket n°:ticketId', ['ticketId' => $ticket->id]) }}
{{ __('Répondre au ticket n°:ticketId', ['ticketId' => $ticket->id]) }} <span class="badge {{ $ticket->type->class }}">{{ $ticket->type->label }}</span>
</h5>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="{{__('Fermer') }}"></button>
</div>