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