mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-25 21:54:14 -08:00
Use activity report for view-assets
This commit is contained in:
parent
a1c7d2922e
commit
610a773620
|
@ -224,37 +224,24 @@ View Assets for {{ $user->present()->fullName() }}
|
||||||
<div class="box-body">
|
<div class="box-body">
|
||||||
@if (count($userlog) > 0)
|
@if (count($userlog) > 0)
|
||||||
<div class="table-responsive">
|
<div class="table-responsive">
|
||||||
<table class="table table-striped" id="example">
|
<table
|
||||||
|
class="table table-striped snipe-table"
|
||||||
|
name="userActivityReport"
|
||||||
|
id="table"
|
||||||
|
data-cookie="false"
|
||||||
|
data-cookie-id-table="userHistoryTable-{{ config('version.hash_version') }}"
|
||||||
|
data-url="{{route('api.activity.list', ['user_id' => $user->id, 'order' => 'desc']) }}">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th class="col-md-1"></th>
|
<th data-field="icon" style="width: 40px;" class="hidden-xs" data-formatter="iconFormatter"></th>
|
||||||
<th class="col-md-2"><span class="line"></span>{{ trans('table.action') }}</th>
|
<th class="col-sm-3" data-field="created_at" data-formatter="dateDisplayFormatter">{{ trans('general.date') }}</th>
|
||||||
<th class="col-md-4"><span class="line"></span>{{ trans('general.asset') }}</th>
|
<th class="col-sm-3" data-field="admin" data-formatter="usersLinkObjFormatter">{{ trans('general.admin') }}</th>
|
||||||
<th class="col-md-2"><span class="line"></span>{{ trans('table.by') }}</th>
|
<th class="col-sm-3" data-field="action_type">{{ trans('general.action') }}</th>
|
||||||
<th class="col-md-3">{{ trans('general.date') }}</th>
|
<th class="col-sm-3" data-field="item" data-formatter="polymorphicItemFormatter">{{ trans('general.item') }}</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
@foreach ($userlog as $log)
|
|
||||||
@php $result = $log->present()->forDataTable();
|
|
||||||
@endphp
|
|
||||||
<tr>
|
|
||||||
<td class="text-center">
|
|
||||||
{!! $result['icon'] !!}
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
{{ $result['action_type'] }}
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
{!! $result['item'] !!}
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
{!! $result['admin'] !!}
|
|
||||||
</td>
|
|
||||||
<td>{{ $result['created_at'] }}</td>
|
|
||||||
</tr>
|
|
||||||
@endforeach
|
|
||||||
</tbody>
|
|
||||||
</table>
|
</table>
|
||||||
</div> <!--.table-responsive-->
|
</div> <!--.table-responsive-->
|
||||||
|
|
||||||
|
@ -272,3 +259,7 @@ View Assets for {{ $user->present()->fullName() }}
|
||||||
</div> <!-- .row-->
|
</div> <!-- .row-->
|
||||||
|
|
||||||
@stop
|
@stop
|
||||||
|
|
||||||
|
@section('moar_scripts')
|
||||||
|
@include ('partials.bootstrap-table')
|
||||||
|
@stop
|
||||||
|
|
Loading…
Reference in a new issue