Updated named location routes in hardware

This commit is contained in:
snipe 2016-12-15 17:18:22 -08:00
parent c308fbce0d
commit 406b828b4e
2 changed files with 3 additions and 3 deletions

View file

@ -320,7 +320,7 @@
<td>{{ trans('general.location') }}</td>
<td>
@can('superuser')
<a href="{{ route('view/location', $asset->assetloc->id) }}">
<a href="{{ route('locations.show', ['location' => $asset->assetloc->id]) }}">
{{ $asset->assetloc->name }}
</a>
@else
@ -335,7 +335,7 @@
<td>{{ trans('admin/hardware/form.default_location') }}</td>
<td>
@can('superuser')
<a href="{{ route('view/location', $asset->defaultLoc->id) }}">
<a href="{{ route('locations.show', ['location' => $asset->defaultLoc->id]) }}">
{{ $asset->defaultLoc->name }}
</a>
@else

View file

@ -9,7 +9,7 @@
@stop
@section('header_right')
<a href="{{ route('update/location', $location->id) }}" class="btn btn-sm btn-primary pull-right">{{ trans('admin/locations/table.update') }} </a>
<a href="{{ route('locations.edit', ['location' => $location->id]) }}" class="btn btn-sm btn-primary pull-right">{{ trans('admin/locations/table.update') }} </a>
@stop
{{-- Page content --}}