mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-25 05:34:06 -08:00
Added simple_view to use compact, no pagination view of tables
This commit is contained in:
parent
ce856bdb0a
commit
6775c39a5e
|
@ -15,31 +15,35 @@ $('.snipe-table').bootstrapTable({
|
|||
classes: 'table table-responsive table-no-bordered',
|
||||
undefinedText: '',
|
||||
iconsPrefix: 'fa',
|
||||
showRefresh: true,
|
||||
|
||||
@if (isset($search))
|
||||
search: true,
|
||||
@endif
|
||||
pageSize: {{ $snipeSettings->per_page }},
|
||||
pagination: true,
|
||||
|
||||
|
||||
paginationVAlign: 'both',
|
||||
sidePagination: 'server',
|
||||
sortable: true,
|
||||
|
||||
@if (!isset($simple_view))
|
||||
pagination: true,
|
||||
pageSize: {{ $snipeSettings->per_page }},
|
||||
showRefresh: true,
|
||||
cookie: true,
|
||||
cookieExpire: '2y',
|
||||
@if (isset($columns))
|
||||
columns: {!! $columns !!},
|
||||
@endif
|
||||
mobileResponsive: true,
|
||||
showExport: true,
|
||||
showColumns: true,
|
||||
trimOnSearch: false,
|
||||
|
||||
@if (isset($multiSort))
|
||||
showMultiSort: true,
|
||||
@endif
|
||||
|
||||
showExport: true,
|
||||
showColumns: true,
|
||||
trimOnSearch: false,
|
||||
@if (isset($exportFile))
|
||||
exportDataType: 'all',
|
||||
exportTypes: ['csv', 'excel', 'doc', 'txt','json', 'xml', 'pdf'],
|
||||
exportOptions: {
|
||||
|
||||
fileName: '{{ $exportFile . "-" }}' + (new Date()).toISOString().slice(0,10),
|
||||
ignoreColumn: ['actions','change','checkbox','checkincheckout'],
|
||||
worksheetName: "Snipe-IT Export",
|
||||
|
@ -55,7 +59,15 @@ $('.snipe-table').bootstrapTable({
|
|||
}
|
||||
}
|
||||
},
|
||||
@endif
|
||||
|
||||
@endif
|
||||
|
||||
@if (isset($columns))
|
||||
columns: {!! $columns !!},
|
||||
@endif
|
||||
|
||||
mobileResponsive: true,
|
||||
|
||||
maintainSelected: true,
|
||||
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) {
|
||||
if (value) {
|
||||
|
|
Loading…
Reference in a new issue