snipe-it/resources/views/reports/activity.blade.php

100 lines
3.2 KiB
PHP
Raw Normal View History

2016-03-25 01:18:05 -07:00
@extends('layouts/default')
{{-- Page title --}}
@section('title')
{{ trans('general.activity_report') }}
@parent
@stop
{{-- Page content --}}
@section('content')
<div class="row">
<div class="col-md-12">
<div class="box box-default">
<div class="box-body">
2016-09-20 00:46:24 -07:00
<table
name="activityReport"
data-toolbar="#toolbar"
class="table table-striped"
id="table"
data-url="{{ route('api.activity.list') }}"
data-cookie="true"
data-cookie-id-table="activityReportTable">
2016-03-25 01:18:05 -07:00
<thead>
<tr>
2016-09-20 00:46:24 -07:00
<th class="col-sm-1" data-field="admin">{{ trans('general.admin') }}</th>
<th class="col-sm-1" data-field="action_type">{{ trans('general.action') }}</th>
<th class="col-sm-1" data-field="item_type">{{ trans('general.type') }}</th>
<th class="col-sm-1" data-field="item">{{ trans('general.item') }}</th>
<th class="col-sm-1" data-field="target">To</th>
<th class="col-sm-1" data-field="created_at">{{ trans('general.date') }}</th>
<th class="col-sm-1" data-field="note">{{ trans('general.notes') }}</th>
2016-03-25 01:18:05 -07:00
</tr>
2016-09-20 00:46:24 -07:00
</thead>
</table>
2016-03-25 01:18:05 -07:00
</div>
</div>
</div>
@section('moar_scripts')
<script src="{{ asset('assets/js/bootstrap-table.js') }}"></script>
<script src="{{ asset('assets/js/extensions/cookie/bootstrap-table-cookie.js') }}"></script>
<script src="{{ asset('assets/js/extensions/mobile/bootstrap-table-mobile.js') }}"></script>
<script src="{{ asset('assets/js/extensions/export/bootstrap-table-export.js') }}"></script>
<script src="{{ asset('assets/js/extensions/export/tableExport.js') }}"></script>
<script src="{{ asset('assets/js/extensions/export/jquery.base64.js') }}"></script>
<script type="text/javascript">
$('#table').bootstrapTable({
classes: 'table table-responsive table-no-bordered',
undefinedText: '',
iconsPrefix: 'fa',
showRefresh: true,
search: true,
2016-09-20 00:46:24 -07:00
pageSize: 100,
2016-03-25 01:18:05 -07:00
pagination: true,
2016-09-20 00:46:24 -07:00
sidePagination: 'server',
2016-03-25 01:18:05 -07:00
sortable: true,
2016-09-20 00:46:24 -07:00
showMultiSort: true,
2016-03-25 01:18:05 -07:00
cookie: true,
2016-09-20 00:46:24 -07:00
cookieExpire: '2y',
2016-03-25 01:18:05 -07:00
mobileResponsive: true,
showExport: true,
showColumns: true,
exportDataType: 'all',
2016-09-20 00:46:24 -07:00
exportTypes: ['csv', 'excel', 'txt','json', 'xml'],
2016-03-25 01:18:05 -07:00
maintainSelected: true,
paginationFirstText: "{{ trans('general.first') }}",
paginationLastText: "{{ trans('general.last') }}",
paginationPreText: "{{ trans('general.previous') }}",
paginationNextText: "{{ trans('general.next') }}",
2016-09-20 00:46:24 -07:00
pageList: ['10','25','50','100','150','200','500','1000'],
exportOptions: {
fileName: 'assets-export-' + (new Date()).toISOString().slice(0,10),
},
2016-03-25 01:18:05 -07:00
icons: {
paginationSwitchDown: 'fa-caret-square-o-down',
paginationSwitchUp: 'fa-caret-square-o-up',
2016-09-20 00:46:24 -07:00
sort: 'fa fa-sort-amount-desc',
plus: 'fa fa-plus',
minus: 'fa fa-minus',
2016-03-25 01:18:05 -07:00
columns: 'fa-columns',
refresh: 'fa-refresh'
},
});
2016-09-20 00:46:24 -07:00
2016-03-25 01:18:05 -07:00
</script>
@stop
@stop