Added new ajax dropdown menus for components, consumables, etc editing/creating
This commit is contained in:
@@ -61,10 +61,7 @@ class ComponentsController extends Controller
|
||||
$this->authorize('create', Component::class);
|
||||
// Show the page
|
||||
return view('components/edit')
|
||||
->with('item', new Component)
|
||||
->with('category_list', Helper::categoryList('component'))
|
||||
->with('company_list', Helper::companyList())
|
||||
->with('location_list', Helper::locationsList());
|
||||
->with('item', new Component);
|
||||
}
|
||||
|
||||
|
||||
@@ -128,9 +125,7 @@ class ComponentsController extends Controller
|
||||
$this->authorize('update', $item);
|
||||
|
||||
return view('components/edit', compact('item'))
|
||||
->with('category_list', Helper::categoryList('component'))
|
||||
->with('company_list', Helper::companyList())
|
||||
->with('location_list', Helper::locationsList());
|
||||
->with('category_list', Helper::categoryList('component'));
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user