mirror of
https://github.com/snipe/snipe-it.git
synced 2025-02-21 03:15:45 -08:00
Fix exports (#2338)
* Update tableexport.js to the new version. * Give the export file in each table a useful name. The name takes the form of tabletype-export-YYYY-MM-DD.extension.
This commit is contained in:
parent
4c9e75cec9
commit
b4e54225a2
File diff suppressed because it is too large
Load diff
|
@ -75,6 +75,9 @@
|
|||
showColumns: true,
|
||||
exportDataType: 'all',
|
||||
exportTypes: ['csv', 'txt','json', 'xml'],
|
||||
exportOptions: {
|
||||
fileName: 'accessories-export-' + (new Date()).toISOString().slice(0,10),
|
||||
},
|
||||
maintainSelected: true,
|
||||
paginationFirstText: "{{ trans('general.first') }}",
|
||||
paginationLastText: "{{ trans('general.last') }}",
|
||||
|
|
|
@ -80,6 +80,9 @@
|
|||
showColumns: true,
|
||||
exportDataType: 'all',
|
||||
exportTypes: ['csv', 'txt','json', 'xml'],
|
||||
exportOptions: {
|
||||
fileName: 'maintenances-export-' + (new Date()).toISOString().slice(0,10),
|
||||
},
|
||||
maintainSelected: true,
|
||||
paginationFirstText: "{{ trans('general.first') }}",
|
||||
paginationLastText: "{{ trans('general.last') }}",
|
||||
|
|
|
@ -77,6 +77,9 @@
|
|||
showColumns: true,
|
||||
exportDataType: 'all',
|
||||
exportTypes: ['csv', 'txt','json', 'xml'],
|
||||
exportOptions: {
|
||||
fileName: 'categories-export-' + (new Date()).toISOString().slice(0,10),
|
||||
},
|
||||
maintainSelected: true,
|
||||
paginationFirstText: "{{ trans('general.first') }}",
|
||||
paginationLastText: "{{ trans('general.last') }}",
|
||||
|
|
|
@ -96,6 +96,9 @@
|
|||
showColumns: true,
|
||||
exportDataType: 'all',
|
||||
exportTypes: ['csv', 'txt','json', 'xml'],
|
||||
exportOptions: {
|
||||
fileName: 'components-export-' + (new Date()).toISOString().slice(0,10),
|
||||
},
|
||||
maintainSelected: true,
|
||||
paginationFirstText: "{{ trans('general.first') }}",
|
||||
paginationLastText: "{{ trans('general.last') }}",
|
||||
|
|
|
@ -80,6 +80,9 @@
|
|||
showColumns: true,
|
||||
exportDataType: 'all',
|
||||
exportTypes: ['csv', 'txt','json', 'xml'],
|
||||
exportOptions: {
|
||||
fileName: 'consumables-export-' + (new Date()).toISOString().slice(0,10),
|
||||
},
|
||||
maintainSelected: true,
|
||||
paginationFirstText: "{{ trans('general.first') }}",
|
||||
paginationLastText: "{{ trans('general.last') }}",
|
||||
|
|
|
@ -75,6 +75,9 @@ $('#table').bootstrapTable({
|
|||
showColumns: true,
|
||||
exportDataType: 'all',
|
||||
exportTypes: ['csv', 'txt','json', 'xml'],
|
||||
exportOptions: {
|
||||
fileName: 'depreciations-export-' + (new Date()).toISOString().slice(0,10),
|
||||
},
|
||||
maintainSelected: true,
|
||||
paginationFirstText: "{{ trans('general.first') }}",
|
||||
paginationLastText: "{{ trans('general.last') }}",
|
||||
|
|
|
@ -70,6 +70,9 @@
|
|||
showColumns: true,
|
||||
exportDataType: 'all',
|
||||
exportTypes: ['csv', 'txt','json', 'xml'],
|
||||
exportOptions: {
|
||||
fileName: 'groups-export-' + (new Date()).toISOString().slice(0,10),
|
||||
},
|
||||
maintainSelected: true,
|
||||
paginationFirstText: "{{ trans('general.first') }}",
|
||||
paginationLastText: "{{ trans('general.last') }}",
|
||||
|
|
|
@ -161,6 +161,9 @@
|
|||
paginationPreText: "{{ trans('general.previous') }}",
|
||||
paginationNextText: "{{ trans('general.next') }}",
|
||||
pageList: ['10','25','50','100','150','200','500','1000'],
|
||||
exportOptions: {
|
||||
fileName: 'assets-export-' + (new Date()).toISOString().slice(0,10),
|
||||
},
|
||||
icons: {
|
||||
paginationSwitchDown: 'fa-caret-square-o-down',
|
||||
paginationSwitchUp: 'fa-caret-square-o-up',
|
||||
|
|
|
@ -85,6 +85,9 @@
|
|||
showColumns: true,
|
||||
exportDataType: 'all',
|
||||
exportTypes: ['csv', 'txt','json', 'xml'],
|
||||
exportOptions: {
|
||||
fileName: 'licenses-export-' + (new Date()).toISOString().slice(0,10),
|
||||
},
|
||||
maintainSelected: true,
|
||||
paginationFirstText: "{{ trans('general.first') }}",
|
||||
paginationLastText: "{{ trans('general.last') }}",
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
<div class="table-responsive">
|
||||
|
||||
<table
|
||||
name="categories"
|
||||
name="locations"
|
||||
class="table table-striped"
|
||||
id="table"
|
||||
data-url="{{ route('api.locations.list') }}"
|
||||
|
@ -77,6 +77,9 @@
|
|||
showColumns: true,
|
||||
exportDataType: 'all',
|
||||
exportTypes: ['csv', 'txt','json', 'xml'],
|
||||
exportOptions: {
|
||||
fileName: 'locations-export-' + (new Date()).toISOString().slice(0,10),
|
||||
},
|
||||
maintainSelected: true,
|
||||
paginationFirstText: "{{ trans('general.first') }}",
|
||||
paginationLastText: "{{ trans('general.last') }}",
|
||||
|
|
|
@ -74,6 +74,9 @@
|
|||
showColumns: true,
|
||||
exportDataType: 'all',
|
||||
exportTypes: ['csv', 'txt','json', 'xml'],
|
||||
exportOptions: {
|
||||
fileName: 'manufacturers-export-' + (new Date()).toISOString().slice(0,10),
|
||||
},
|
||||
maintainSelected: true,
|
||||
paginationFirstText: "{{ trans('general.first') }}",
|
||||
paginationLastText: "{{ trans('general.last') }}",
|
||||
|
|
|
@ -76,11 +76,16 @@
|
|||
pagination: true,
|
||||
sidePagination: 'server',
|
||||
sortable: true,
|
||||
mobileResponsive: true,
|
||||
showExport: true,
|
||||
cookie: true,
|
||||
cookieExpire: '2y',
|
||||
mobileResponsive: true,
|
||||
showExport: true,
|
||||
showColumns: true,
|
||||
exportDataType: 'all',
|
||||
exportTypes: ['csv', 'txt','json', 'xml'],
|
||||
exportOptions: {
|
||||
fileName: 'models-export-' + (new Date()).toISOString().slice(0,10),
|
||||
},
|
||||
maintainSelected: true,
|
||||
paginationFirstText: "{{ trans('general.first') }}",
|
||||
paginationLastText: "{{ trans('general.last') }}",
|
||||
|
|
|
@ -72,6 +72,9 @@
|
|||
showColumns: true,
|
||||
exportDataType: 'all',
|
||||
exportTypes: ['csv', 'txt','json', 'xml'],
|
||||
exportOptions: {
|
||||
fileName: 'statuslabels-export-' + (new Date()).toISOString().slice(0,10),
|
||||
},
|
||||
maintainSelected: true,
|
||||
paginationFirstText: "{{ trans('general.first') }}",
|
||||
paginationLastText: "{{ trans('general.last') }}",
|
||||
|
|
|
@ -75,6 +75,9 @@
|
|||
showColumns: true,
|
||||
exportDataType: 'all',
|
||||
exportTypes: ['csv', 'txt','json', 'xml'],
|
||||
exportOptions: {
|
||||
fileName: 'suppliers-export-' + (new Date()).toISOString().slice(0,10),
|
||||
},
|
||||
maintainSelected: true,
|
||||
paginationFirstText: "{{ trans('general.first') }}",
|
||||
paginationLastText: "{{ trans('general.last') }}",
|
||||
|
|
|
@ -53,7 +53,7 @@
|
|||
|
||||
|
||||
<table
|
||||
name="assets"
|
||||
name="users"
|
||||
data-toolbar="#toolbar"
|
||||
class="table table-striped"
|
||||
id="table"
|
||||
|
@ -149,6 +149,9 @@
|
|||
showColumns: true,
|
||||
exportDataType: 'all',
|
||||
exportTypes: ['csv', 'txt','json', 'xml'],
|
||||
exportOptions: {
|
||||
fileName: 'users-export-' + (new Date()).toISOString().slice(0,10),
|
||||
},
|
||||
maintainSelected: true,
|
||||
paginationFirstText: "{{ trans('general.first') }}",
|
||||
paginationLastText: "{{ trans('general.last') }}",
|
||||
|
|
Loading…
Reference in a new issue