mirror of
https://github.com/snipe/snipe-it.git
synced 2025-02-21 03:15:45 -08:00
Merge branch 'integrations/rc5-4-2020-08-31-dev-into-master' into develop
This commit is contained in:
commit
d0124b900a
|
@ -366,62 +366,29 @@
|
||||||
|
|
||||||
<div class="tab-pane" id="asset">
|
<div class="tab-pane" id="asset">
|
||||||
<!-- checked out assets table -->
|
<!-- checked out assets table -->
|
||||||
<div class="table-responsive">
|
<div class="table-responsive table-striped">
|
||||||
<table class="display table table-striped">
|
<table
|
||||||
<thead>
|
data-click-to-select="true"
|
||||||
<tr>
|
data-columns="{{ \App\Presenters\AssetPresenter::dataTableLayout() }}"
|
||||||
<th class="col-md-3">{{ trans('admin/hardware/table.asset_model') }}</th>
|
data-cookie-id-table="userAssetsListingTable"
|
||||||
<th class="col-md-2">{{ trans('admin/hardware/table.asset_tag') }}</th>
|
data-pagination="true"
|
||||||
<th class="col-md-2">{{ trans('general.name') }}</th>
|
data-id-table="userAssetsListingTable"
|
||||||
<th class="col-md-1 hidden-print">{{ trans('general.action') }}</th>
|
data-search="true"
|
||||||
</tr>
|
data-side-pagination="server"
|
||||||
</thead>
|
data-show-columns="true"
|
||||||
<tbody>
|
data-show-export="true"
|
||||||
@if ($user->assets)
|
data-show-footer="true"
|
||||||
@foreach ($user->assets as $asset)
|
data-show-refresh="true"
|
||||||
<tr>
|
data-sort-order="asc"
|
||||||
<td>
|
data-sort-name="name"
|
||||||
@if (($asset->model) && ($asset->physical=='1'))
|
data-toolbar="#toolbar"
|
||||||
<a href="{{ route('models.show', $asset->model->id) }}">{{ $asset->model->name }}</a>
|
id="userAssetsListingTable"
|
||||||
@endif
|
class="table table-striped snipe-table"
|
||||||
</td>
|
data-url="{{ route('api.assets.index',['assigned_to' => e($user->id), 'assigned_type' => 'App\Models\User']) }}"
|
||||||
<td>
|
data-export-options='{
|
||||||
@can('view', $asset)
|
"fileName": "export-{{ str_slug($user->present()->fullName()) }}-assets-{{ date('Y-m-d') }}",
|
||||||
<a href="{{ route('hardware.show', $asset->id) }}">{{ $asset->asset_tag }}</a>
|
"ignoreColumn": ["actions","image","change","checkbox","checkincheckout","icon"]
|
||||||
@endcan
|
}'>
|
||||||
</td>
|
|
||||||
<td>{!! $asset->present()->nameUrl() !!}</td>
|
|
||||||
<td class="hidden-print">
|
|
||||||
@can('checkin', $asset)
|
|
||||||
<a href="{{ route('checkin/hardware', array('assetId'=> $asset->id, 'backto'=>'user')) }}" class="btn btn-primary btn-sm hidden-print">{{ trans('general.checkin') }}</a>
|
|
||||||
@endcan
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
@if($settings->show_assigned_assets)
|
|
||||||
@foreach ($asset->assignedAssets as $asset)
|
|
||||||
<tr>
|
|
||||||
<td>
|
|
||||||
@if ($asset->physical=='1')
|
|
||||||
<a href="{{ route('models.show', $asset->model->id) }}">{{ ' – '.$asset->model->name }}</a>
|
|
||||||
@endif
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
@can('view', $asset)
|
|
||||||
<a href="{{ route('hardware.show', $asset->id) }}">{{ $asset->asset_tag }}</a>
|
|
||||||
@endcan
|
|
||||||
</td>
|
|
||||||
<td>{!! $asset->present()->nameUrl() !!}</td>
|
|
||||||
<td class="hidden-print">
|
|
||||||
@can('checkin', $asset)
|
|
||||||
<a href="{{ route('checkin/hardware', array('assetId'=> $asset->id, 'backto'=>'user')) }}" class="btn btn-primary btn-sm hidden-print">{{ trans('general.checkin') }}</a>
|
|
||||||
@endcan
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
@endforeach
|
|
||||||
@endif
|
|
||||||
@endforeach
|
|
||||||
@endif
|
|
||||||
</tbody>
|
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
</div><!-- /asset -->
|
</div><!-- /asset -->
|
||||||
|
|
Loading…
Reference in a new issue