Toggle visibility of fields in categories presenter

This commit is contained in:
snipe 2017-03-11 05:30:14 -08:00
parent a680541fe8
commit 4e81b97145

View file

@ -30,7 +30,7 @@ class CategoryPresenter extends Presenter
"searchable" => true, "searchable" => true,
"sortable" => true, "sortable" => true,
"title" => trans('general.name'), "title" => trans('general.name'),
"visible" => false, "visible" => true,
"formatter" => 'categoriesLinkFormatter', "formatter" => 'categoriesLinkFormatter',
],[ ],[
"field" => "type", "field" => "type",
@ -43,13 +43,13 @@ class CategoryPresenter extends Presenter
"searchable" => false, "searchable" => false,
"sortable" => false, "sortable" => false,
"title" => trans('general.assets'), "title" => trans('general.assets'),
"visible" => false "visible" => true
], [ ], [
"field" => "accessories_count", "field" => "accessories_count",
"searchable" => false, "searchable" => false,
"sortable" => false, "sortable" => false,
"title" => trans('general.accessories'), "title" => trans('general.accessories'),
"visible" => false "visible" => true
], [ ], [
"field" => "consumables_count", "field" => "consumables_count",
"searchable" => false, "searchable" => false,
@ -74,7 +74,7 @@ class CategoryPresenter extends Presenter
"searchable" => false, "searchable" => false,
"sortable" => false, "sortable" => false,
"title" => trans('admin/categories/table.require_acceptance'), "title" => trans('admin/categories/table.require_acceptance'),
"visible" => false, "visible" => true,
"formatter" => 'trueFalseFormatter', "formatter" => 'trueFalseFormatter',
], [ ], [
"field" => "actions", "field" => "actions",
@ -82,6 +82,7 @@ class CategoryPresenter extends Presenter
"sortable" => false, "sortable" => false,
"switchable" => false, "switchable" => false,
"title" => trans('table.actions'), "title" => trans('table.actions'),
"visible" => true,
"formatter" => "categoriesActionsFormatter", "formatter" => "categoriesActionsFormatter",
] ]
]; ];