Added new ajax dropdown menus for components, consumables, etc editing/creating

This commit is contained in:
snipe
2017-10-28 09:21:39 -07:00
parent fe70792cbd
commit 6a3716a06d
21 changed files with 107 additions and 105 deletions
@@ -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'));
}