Add manufacturer to edit form

This commit is contained in:
Nick Peelman
2013-11-27 10:06:36 -05:00
parent 0aa3c676c2
commit b5a0da03a8
2 changed files with 9 additions and 0 deletions
@@ -38,6 +38,7 @@ class ModelsController extends AdminController {
{
// Show the page
$depreciation_list = array('' => 'Do Not Depreciate') + Depreciation::lists('name', 'id');
$manufacturer_list = array('' => 'N/A') + Manufacturer::lists('name', 'id');
$category_list = array('' => '') + DB::table('categories')->lists('name', 'id');
return View::make('backend/models/edit')->with('category_list',$category_list)->with('depreciation_list',$depreciation_list)->with('model',new Model);
}