mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-25 13:44:06 -08:00
Merge pull request #14464 from snipe/features/toggle_all_columns
Added "toggle all" to column selector
This commit is contained in:
commit
de18e449a6
|
@ -41,6 +41,7 @@ class AccessoryPresenter extends Presenter
|
||||||
'field' => 'name',
|
'field' => 'name',
|
||||||
'searchable' => true,
|
'searchable' => true,
|
||||||
'sortable' => true,
|
'sortable' => true,
|
||||||
|
'switchable' => false,
|
||||||
'title' => trans('general.name'),
|
'title' => trans('general.name'),
|
||||||
'formatter' => 'accessoriesLinkFormatter',
|
'formatter' => 'accessoriesLinkFormatter',
|
||||||
], [
|
], [
|
||||||
|
|
|
@ -85,6 +85,7 @@ class AssetMaintenancesPresenter extends Presenter
|
||||||
'field' => 'title',
|
'field' => 'title',
|
||||||
'searchable' => true,
|
'searchable' => true,
|
||||||
'sortable' => true,
|
'sortable' => true,
|
||||||
|
'switchable' => false,
|
||||||
'title' => trans('admin/asset_maintenances/form.title'),
|
'title' => trans('admin/asset_maintenances/form.title'),
|
||||||
], [
|
], [
|
||||||
'field' => 'start_date',
|
'field' => 'start_date',
|
||||||
|
|
|
@ -35,6 +35,7 @@ class AssetModelPresenter extends Presenter
|
||||||
'field' => 'name',
|
'field' => 'name',
|
||||||
'searchable' => true,
|
'searchable' => true,
|
||||||
'sortable' => true,
|
'sortable' => true,
|
||||||
|
'switchable' => false,
|
||||||
'visible' => true,
|
'visible' => true,
|
||||||
'title' => trans('general.name'),
|
'title' => trans('general.name'),
|
||||||
'formatter' => 'modelsLinkFormatter',
|
'formatter' => 'modelsLinkFormatter',
|
||||||
|
|
|
@ -55,6 +55,7 @@ class AssetPresenter extends Presenter
|
||||||
'field' => 'asset_tag',
|
'field' => 'asset_tag',
|
||||||
'searchable' => true,
|
'searchable' => true,
|
||||||
'sortable' => true,
|
'sortable' => true,
|
||||||
|
'switchable' => false,
|
||||||
'title' => trans('admin/hardware/table.asset_tag'),
|
'title' => trans('admin/hardware/table.asset_tag'),
|
||||||
'visible' => true,
|
'visible' => true,
|
||||||
'formatter' => 'hardwareLinkFormatter',
|
'formatter' => 'hardwareLinkFormatter',
|
||||||
|
@ -316,7 +317,7 @@ class AssetPresenter extends Presenter
|
||||||
'field' => 'checkincheckout',
|
'field' => 'checkincheckout',
|
||||||
'searchable' => false,
|
'searchable' => false,
|
||||||
'sortable' => false,
|
'sortable' => false,
|
||||||
'switchable' => true,
|
'switchable' => false,
|
||||||
'title' => trans('general.checkin').'/'.trans('general.checkout'),
|
'title' => trans('general.checkin').'/'.trans('general.checkout'),
|
||||||
'visible' => true,
|
'visible' => true,
|
||||||
'formatter' => 'hardwareInOutFormatter',
|
'formatter' => 'hardwareInOutFormatter',
|
||||||
|
|
|
@ -25,6 +25,7 @@ class CategoryPresenter extends Presenter
|
||||||
'field' => 'name',
|
'field' => 'name',
|
||||||
'searchable' => true,
|
'searchable' => true,
|
||||||
'sortable' => true,
|
'sortable' => true,
|
||||||
|
'switchable' => false,
|
||||||
'title' => trans('general.name'),
|
'title' => trans('general.name'),
|
||||||
'visible' => true,
|
'visible' => true,
|
||||||
'formatter' => 'categoriesLinkFormatter',
|
'formatter' => 'categoriesLinkFormatter',
|
||||||
|
|
|
@ -25,7 +25,7 @@ class CompanyPresenter extends Presenter
|
||||||
'field' => 'name',
|
'field' => 'name',
|
||||||
'searchable' => true,
|
'searchable' => true,
|
||||||
'sortable' => true,
|
'sortable' => true,
|
||||||
'switchable' => true,
|
'switchable' => false,
|
||||||
'title' => trans('admin/companies/table.name'),
|
'title' => trans('admin/companies/table.name'),
|
||||||
'visible' => true,
|
'visible' => true,
|
||||||
'formatter' => 'companiesLinkFormatter',
|
'formatter' => 'companiesLinkFormatter',
|
||||||
|
|
|
@ -126,7 +126,7 @@ class ComponentPresenter extends Presenter
|
||||||
'field' => 'checkincheckout',
|
'field' => 'checkincheckout',
|
||||||
'searchable' => false,
|
'searchable' => false,
|
||||||
'sortable' => false,
|
'sortable' => false,
|
||||||
'switchable' => true,
|
'switchable' => false,
|
||||||
'title' => trans('general.checkin').'/'.trans('general.checkout'),
|
'title' => trans('general.checkin').'/'.trans('general.checkout'),
|
||||||
'visible' => true,
|
'visible' => true,
|
||||||
'formatter' => 'componentsInOutFormatter',
|
'formatter' => 'componentsInOutFormatter',
|
||||||
|
|
|
@ -35,6 +35,7 @@ class ConsumablePresenter extends Presenter
|
||||||
'field' => 'name',
|
'field' => 'name',
|
||||||
'searchable' => true,
|
'searchable' => true,
|
||||||
'sortable' => true,
|
'sortable' => true,
|
||||||
|
'switchable' => false,
|
||||||
'title' => trans('general.name'),
|
'title' => trans('general.name'),
|
||||||
'visible' => true,
|
'visible' => true,
|
||||||
'formatter' => 'consumablesLinkFormatter',
|
'formatter' => 'consumablesLinkFormatter',
|
||||||
|
|
|
@ -25,6 +25,7 @@ class DepreciationPresenter extends Presenter
|
||||||
'field' => 'name',
|
'field' => 'name',
|
||||||
'searchable' => true,
|
'searchable' => true,
|
||||||
'sortable' => true,
|
'sortable' => true,
|
||||||
|
'switchable' => false,
|
||||||
'title' => trans('general.name'),
|
'title' => trans('general.name'),
|
||||||
'visible' => true,
|
'visible' => true,
|
||||||
'formatter' => 'depreciationsLinkFormatter',
|
'formatter' => 'depreciationsLinkFormatter',
|
||||||
|
|
|
@ -34,6 +34,7 @@ class DepreciationReportPresenter extends Presenter
|
||||||
"field" => "name",
|
"field" => "name",
|
||||||
"searchable" => true,
|
"searchable" => true,
|
||||||
"sortable" => true,
|
"sortable" => true,
|
||||||
|
'switchable' => false,
|
||||||
"title" => trans('admin/hardware/form.name'),
|
"title" => trans('admin/hardware/form.name'),
|
||||||
"visible" => false,
|
"visible" => false,
|
||||||
], [
|
], [
|
||||||
|
|
|
@ -33,6 +33,7 @@ class LicensePresenter extends Presenter
|
||||||
'field' => 'name',
|
'field' => 'name',
|
||||||
'searchable' => true,
|
'searchable' => true,
|
||||||
'sortable' => true,
|
'sortable' => true,
|
||||||
|
'switchable' => false,
|
||||||
'title' => trans('general.name'),
|
'title' => trans('general.name'),
|
||||||
'formatter' => 'licensesLinkFormatter',
|
'formatter' => 'licensesLinkFormatter',
|
||||||
], [
|
], [
|
||||||
|
@ -186,7 +187,7 @@ class LicensePresenter extends Presenter
|
||||||
'field' => 'checkincheckout',
|
'field' => 'checkincheckout',
|
||||||
'searchable' => false,
|
'searchable' => false,
|
||||||
'sortable' => false,
|
'sortable' => false,
|
||||||
'switchable' => true,
|
'switchable' => false,
|
||||||
'title' => trans('general.checkin').'/'.trans('general.checkout'),
|
'title' => trans('general.checkin').'/'.trans('general.checkout'),
|
||||||
'visible' => true,
|
'visible' => true,
|
||||||
'formatter' => 'licensesInOutFormatter',
|
'formatter' => 'licensesInOutFormatter',
|
||||||
|
@ -280,7 +281,7 @@ class LicensePresenter extends Presenter
|
||||||
'field' => 'checkincheckout',
|
'field' => 'checkincheckout',
|
||||||
'searchable' => false,
|
'searchable' => false,
|
||||||
'sortable' => false,
|
'sortable' => false,
|
||||||
'switchable' => true,
|
'switchable' => false,
|
||||||
'title' => trans('general.checkin').'/'.trans('general.checkout'),
|
'title' => trans('general.checkin').'/'.trans('general.checkout'),
|
||||||
'visible' => true,
|
'visible' => true,
|
||||||
'formatter' => 'licenseSeatInOutFormatter',
|
'formatter' => 'licenseSeatInOutFormatter',
|
||||||
|
|
|
@ -31,6 +31,7 @@ class LocationPresenter extends Presenter
|
||||||
'field' => 'name',
|
'field' => 'name',
|
||||||
'searchable' => true,
|
'searchable' => true,
|
||||||
'sortable' => true,
|
'sortable' => true,
|
||||||
|
'switchable' => false,
|
||||||
'title' => trans('admin/locations/table.name'),
|
'title' => trans('admin/locations/table.name'),
|
||||||
'visible' => true,
|
'visible' => true,
|
||||||
'formatter' => 'locationsLinkFormatter',
|
'formatter' => 'locationsLinkFormatter',
|
||||||
|
|
|
@ -27,6 +27,7 @@ class ManufacturerPresenter extends Presenter
|
||||||
'field' => 'name',
|
'field' => 'name',
|
||||||
'searchable' => true,
|
'searchable' => true,
|
||||||
'sortable' => true,
|
'sortable' => true,
|
||||||
|
'switchable' => false,
|
||||||
'title' => trans('admin/manufacturers/table.name'),
|
'title' => trans('admin/manufacturers/table.name'),
|
||||||
'visible' => true,
|
'visible' => true,
|
||||||
'formatter' => 'manufacturersLinkFormatter',
|
'formatter' => 'manufacturersLinkFormatter',
|
||||||
|
|
|
@ -38,7 +38,7 @@ class UserPresenter extends Presenter
|
||||||
'searchable' => false,
|
'searchable' => false,
|
||||||
'sortable' => false,
|
'sortable' => false,
|
||||||
'switchable' => true,
|
'switchable' => true,
|
||||||
'title' => 'Avatar',
|
'title' => trans('general.importer.avatar'),
|
||||||
'visible' => false,
|
'visible' => false,
|
||||||
'formatter' => 'imageFormatter',
|
'formatter' => 'imageFormatter',
|
||||||
],
|
],
|
||||||
|
@ -175,7 +175,7 @@ class UserPresenter extends Presenter
|
||||||
'field' => 'username',
|
'field' => 'username',
|
||||||
'searchable' => true,
|
'searchable' => true,
|
||||||
'sortable' => true,
|
'sortable' => true,
|
||||||
'switchable' => true,
|
'switchable' => false,
|
||||||
'title' => trans('admin/users/table.username'),
|
'title' => trans('admin/users/table.username'),
|
||||||
'visible' => true,
|
'visible' => true,
|
||||||
'formatter' => 'usersLinkFormatter',
|
'formatter' => 'usersLinkFormatter',
|
||||||
|
|
|
@ -46,12 +46,14 @@
|
||||||
stickyHeader: true,
|
stickyHeader: true,
|
||||||
stickyHeaderOffsetLeft: parseInt($('body').css('padding-left'), 10),
|
stickyHeaderOffsetLeft: parseInt($('body').css('padding-left'), 10),
|
||||||
stickyHeaderOffsetRight: parseInt($('body').css('padding-right'), 10),
|
stickyHeaderOffsetRight: parseInt($('body').css('padding-right'), 10),
|
||||||
locale: locale,
|
locale: '{{ app()->getLocale() }}',
|
||||||
undefinedText: '',
|
undefinedText: '',
|
||||||
iconsPrefix: 'fa',
|
iconsPrefix: 'fa',
|
||||||
cookieStorage: '{{ config('session.bs_table_storage') }}',
|
cookieStorage: '{{ config('session.bs_table_storage') }}',
|
||||||
cookie: true,
|
cookie: true,
|
||||||
cookieExpire: '2y',
|
cookieExpire: '2y',
|
||||||
|
showColumnsToggleAll: true,
|
||||||
|
minimumCountColumns: 2,
|
||||||
mobileResponsive: true,
|
mobileResponsive: true,
|
||||||
maintainSelected: true,
|
maintainSelected: true,
|
||||||
trimOnSearch: false,
|
trimOnSearch: false,
|
||||||
|
|
Loading…
Reference in a new issue