add reset filters button
This commit is contained in:
parent
483b9e669c
commit
3cc36b7aec
2 changed files with 6 additions and 0 deletions
|
|
@ -40,6 +40,11 @@ class TicketController extends Controller
|
|||
$tickets = $tickets->where('status', '<>', TicketStatus::archived());
|
||||
}
|
||||
|
||||
if ($request->rst) {
|
||||
Session::remove('tickets.pr');
|
||||
Session::remove('tickets.sort_col');
|
||||
Session::remove('tickets.sort_way');
|
||||
}
|
||||
if ($request->prs) {
|
||||
Session::remove('tickets.pr');
|
||||
}
|
||||
|
|
|
|||
|
|
@ -12,6 +12,7 @@
|
|||
@else
|
||||
<a href="{{ route('ticket.index', ['status' => TicketStatus::archived()]) }}" class="float-right btn btn-sm btn-secondary mr-2">Tickets Archivés</a>
|
||||
@endif
|
||||
<a href="{{ route('ticket.index', ['rst' => 1]) }}" class="float-right btn btn-sm btn-dark mr-2">Réinitialiser le tri</a>
|
||||
<div class="float-right mr-2">
|
||||
<select class="custom-select" onchange="window.location='{{ route('ticket.index') }}?'+(this.value == -1 ? 'prs=-1' : 'pr='+this.value);">
|
||||
<option value="-1">Tous</option>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue