mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-12 06:17:28 -08:00
Misc view rounte cleanups
This commit is contained in:
parent
4751bcd002
commit
76344a8c9b
|
@ -53,7 +53,7 @@ use Carbon\Carbon;
|
|||
</div>
|
||||
<div class="col-md-3 col-sm-3" style="padding-bottom: 10px; margin-left: 15px; word-wrap: break-word;">
|
||||
<strong>{{ trans('general.supplier') }}: </strong>
|
||||
<a href="{{ route('view/supplier', $assetMaintenance->supplier_id) }}">
|
||||
<a href="{{ route('suppliers.show', $assetMaintenance->supplier_id) }}">
|
||||
{{ $assetMaintenance->supplier->name }}
|
||||
</a>
|
||||
</div>
|
||||
|
|
|
@ -77,7 +77,7 @@
|
|||
{{ $asset->model->manufacturer->name }}
|
||||
</a> </div>
|
||||
<div class="col-md-12" style="padding-bottom: 5px;"><strong>{{ trans('admin/hardware/form.model') }}:</strong>
|
||||
<a href="{{ route('view/model', $asset->model->id) }}">
|
||||
<a href="{{ route('models.show', $asset->model->id) }}">
|
||||
{{ $asset->model->name }}
|
||||
</a>
|
||||
/ {{ $asset->model->model_number }}</div>
|
||||
|
@ -101,7 +101,7 @@
|
|||
|
||||
@if ($asset->supplier_id)
|
||||
<div class="col-md-6" style="padding-bottom: 5px;"><strong>{{ trans('admin/hardware/form.supplier') }}: </strong>
|
||||
<a href="{{ route('view/supplier', $asset->supplier_id) }}">
|
||||
<a href="{{ route('suppliers.show', $asset->supplier_id) }}">
|
||||
{{ $asset->supplier->name }}
|
||||
</a> </div>
|
||||
@endif
|
||||
|
|
|
@ -115,7 +115,7 @@
|
|||
<td>{{ trans('admin/hardware/form.manufacturer') }}</td>
|
||||
<td>
|
||||
@can('superuser')
|
||||
<a href="{{ route('view/manufacturer', $asset->model->manufacturer->id) }}">
|
||||
<a href="{{ route('manufacturers.show', $asset->model->manufacturer->id) }}">
|
||||
{{ $asset->model->manufacturer->name }}
|
||||
</a>
|
||||
@else
|
||||
|
@ -128,7 +128,7 @@
|
|||
{{ trans('admin/hardware/form.model') }}</td>
|
||||
<td>
|
||||
@can('superuser')
|
||||
<a href="{{ route('view/model', $asset->model->id) }}">
|
||||
<a href="{{ route('models.show', $asset->model->id) }}">
|
||||
{{ $asset->model->name }}
|
||||
</a>
|
||||
@else
|
||||
|
@ -217,7 +217,7 @@
|
|||
<td>{{ trans('general.supplier') }}</td>
|
||||
<td>
|
||||
@can ('superuser')
|
||||
<a href="{{ route('view/supplier', $asset->supplier_id) }}">
|
||||
<a href="{{ route('suppliers.show', $asset->supplier_id) }}">
|
||||
{{ $asset->supplier->name }}
|
||||
</a>
|
||||
@else
|
||||
|
@ -527,7 +527,7 @@
|
|||
@foreach ($asset->assetmaintenances as $assetMaintenance)
|
||||
@if (is_null($assetMaintenance->deleted_at))
|
||||
<tr>
|
||||
<td><a href="{{ route('view/supplier', $assetMaintenance->supplier_id) }}">{{ $assetMaintenance->supplier->name }}</a></td>
|
||||
<td><a href="{{ route('suppliers.show', $assetMaintenance->supplier_id) }}">{{ $assetMaintenance->supplier->name }}</a></td>
|
||||
<td>{{ $assetMaintenance->title }}</td>
|
||||
<td>{{ $assetMaintenance->asset_maintenance_type }}</td>
|
||||
<td>{{ $assetMaintenance->start_date }}</td>
|
||||
|
|
|
@ -173,7 +173,7 @@
|
|||
<td>{{ trans('general.supplier') }}:
|
||||
</td>
|
||||
<td>
|
||||
<a href="{{ route('view/supplier', $license->supplier_id) }}">
|
||||
<a href="{{ route('suppliers.show', $license->supplier_id) }}">
|
||||
{{ $license->supplier->name }}
|
||||
</a>
|
||||
</td>
|
||||
|
|
|
@ -250,7 +250,7 @@
|
|||
<tbody>
|
||||
@foreach ($user->accessories as $accessory)
|
||||
<tr>
|
||||
<td><a href="{{ route('view/accessory', $accessory->id) }}">{{ $accessory->name }}</a></td>
|
||||
<td><a href="{{ route('accessories.show', $accessory->id) }}">{{ $accessory->name }}</a></td>
|
||||
<td class="hidden-print">
|
||||
@can('accessories.edit')
|
||||
<a href="{{ route('checkin/accessory', array('accessory_id'=> $accessory->pivot->id, 'backto'=>'user')) }}" class="btn btn-primary btn-sm">Checkin</a>
|
||||
|
|
Loading…
Reference in a new issue