Fixed new ticket

This commit is contained in:
Jérémy Munsch 2022-06-09 12:11:27 +02:00
parent 79f9b67d3e
commit f3a20682f0
No known key found for this signature in database
GPG key ID: 18361AF3BFEC0FEC

View file

@ -41,7 +41,7 @@ $userPr = Auth::user()->sites ?? collect([]);
@php
$dataVue = [
'name' => 'labels',
'value' => old('labels', optional($ticket)->labels),
'value' => old('labels', optional($ticket ?? null)->labels),
'labels' => \App\Models\Label::all()
];
@endphp
@ -55,7 +55,7 @@ $userPr = Auth::user()->sites ?? collect([]);
<div class="form-group mb-5">
<label for="text" class="col-form-label text-md-right">{{ __('Description') }}</label>
<textarea class="form-control" style="min-height: 15rem;" name="text" id="text" placeholder="{{ __('Description du ticket') }} *">{{ old('text') ?? $ticket->text ?? ''}}</textarea>
<textarea rows="15" class="form-control" name="text" id="text" placeholder="{{ __('Description du ticket') }} *">{{ old('text') ?? $ticket->text ?? ''}}</textarea>
</div>
<h4>Fichier joint 1</h4>
<div class="form-group mb-3">
@ -63,7 +63,7 @@ $userPr = Auth::user()->sites ?? collect([]);
@if (isset($ticket) and $ticket->file !== null)
<hr>
<div class="text-center">
<img src="{{ asset($ticket->file) }}" style="max-width: 100%;">
<img class="img-fluid" src="{{ asset($ticket->file) }}">
</div>
@endif
</div>
@ -73,7 +73,7 @@ $userPr = Auth::user()->sites ?? collect([]);
@if (isset($ticket) and $ticket->file2 !== null)
<hr>
<div class="text-center">
<img src="{{ asset($ticket->file2) }}" style="max-width: 100%;">
<img class="img-fluid" src="{{ asset($ticket->file2) }}">
</div>
@endif
</div>