Added simple_view to use compact, no pagination view of tables
This commit is contained in:
parent
ce856bdb0a
commit
6775c39a5e
1 changed files with 47 additions and 30 deletions
|
@ -15,31 +15,35 @@ $('.snipe-table').bootstrapTable({
|
||||||
classes: 'table table-responsive table-no-bordered',
|
classes: 'table table-responsive table-no-bordered',
|
||||||
undefinedText: '',
|
undefinedText: '',
|
||||||
iconsPrefix: 'fa',
|
iconsPrefix: 'fa',
|
||||||
showRefresh: true,
|
|
||||||
@if (isset($search))
|
@if (isset($search))
|
||||||
search: true,
|
search: true,
|
||||||
@endif
|
@endif
|
||||||
pageSize: {{ $snipeSettings->per_page }},
|
|
||||||
pagination: true,
|
|
||||||
paginationVAlign: 'both',
|
paginationVAlign: 'both',
|
||||||
sidePagination: 'server',
|
sidePagination: 'server',
|
||||||
sortable: true,
|
sortable: true,
|
||||||
|
|
||||||
|
@if (!isset($simple_view))
|
||||||
|
pagination: true,
|
||||||
|
pageSize: {{ $snipeSettings->per_page }},
|
||||||
|
showRefresh: true,
|
||||||
cookie: true,
|
cookie: true,
|
||||||
cookieExpire: '2y',
|
cookieExpire: '2y',
|
||||||
@if (isset($columns))
|
showExport: true,
|
||||||
columns: {!! $columns !!},
|
showColumns: true,
|
||||||
@endif
|
trimOnSearch: false,
|
||||||
mobileResponsive: true,
|
|
||||||
@if (isset($multiSort))
|
@if (isset($multiSort))
|
||||||
showMultiSort: true,
|
showMultiSort: true,
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
showExport: true,
|
@if (isset($exportFile))
|
||||||
showColumns: true,
|
|
||||||
trimOnSearch: false,
|
|
||||||
exportDataType: 'all',
|
exportDataType: 'all',
|
||||||
exportTypes: ['csv', 'excel', 'doc', 'txt','json', 'xml', 'pdf'],
|
exportTypes: ['csv', 'excel', 'doc', 'txt','json', 'xml', 'pdf'],
|
||||||
exportOptions: {
|
exportOptions: {
|
||||||
|
|
||||||
fileName: '{{ $exportFile . "-" }}' + (new Date()).toISOString().slice(0,10),
|
fileName: '{{ $exportFile . "-" }}' + (new Date()).toISOString().slice(0,10),
|
||||||
ignoreColumn: ['actions','change','checkbox','checkincheckout'],
|
ignoreColumn: ['actions','change','checkbox','checkincheckout'],
|
||||||
worksheetName: "Snipe-IT Export",
|
worksheetName: "Snipe-IT Export",
|
||||||
|
@ -55,7 +59,15 @@ $('.snipe-table').bootstrapTable({
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@endif
|
||||||
|
|
||||||
|
@endif
|
||||||
|
|
||||||
|
@if (isset($columns))
|
||||||
|
columns: {!! $columns !!},
|
||||||
|
@endif
|
||||||
|
|
||||||
|
mobileResponsive: true,
|
||||||
|
|
||||||
maintainSelected: true,
|
maintainSelected: true,
|
||||||
paginationFirstText: "{{ trans('general.first') }}",
|
paginationFirstText: "{{ trans('general.first') }}",
|
||||||
|
@ -215,6 +227,11 @@ $('.snipe-table').bootstrapTable({
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function iconFormatter(value, row) {
|
||||||
|
if (value) {
|
||||||
|
return '<i class="' + value + '"></i>';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
function emailFormatter(value, row) {
|
function emailFormatter(value, row) {
|
||||||
if (value) {
|
if (value) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue