mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-12 06:17:28 -08:00
Improve back button behavior
This commit is contained in:
parent
3616c92148
commit
e390a95bd3
|
@ -7,8 +7,19 @@
|
|||
@stop
|
||||
|
||||
@section('header_right')
|
||||
@if (request()->routeIs('report-templates.edit'))
|
||||
<a href="{{ route('report-templates.show', $template) }}" class="btn btn-primary pull-right">
|
||||
{{ trans('general.back') }}
|
||||
</a>
|
||||
@elseif(request()->routeIs('report-templates.show'))
|
||||
<a href="{{ route('reports/custom') }}" class="btn btn-primary pull-right">
|
||||
{{ trans('general.back') }}
|
||||
</a>
|
||||
@else
|
||||
<a href="{{ URL::previous() }}" class="btn btn-primary pull-right">
|
||||
{{ trans('general.back') }}</a>
|
||||
{{ trans('general.back') }}
|
||||
</a>
|
||||
@endif
|
||||
@stop
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue