From 295c2e35eb6272d7ff7dd6726a50d290dcbb5003 Mon Sep 17 00:00:00 2001 From: snipe Date: Sun, 24 Nov 2013 19:06:52 -0500 Subject: [PATCH] Edits to status dropdown --- app/controllers/admin/AssetsController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/admin/AssetsController.php b/app/controllers/admin/AssetsController.php index 25d0e0eded..581ed3fd51 100644 --- a/app/controllers/admin/AssetsController.php +++ b/app/controllers/admin/AssetsController.php @@ -82,7 +82,7 @@ class AssetsController extends AdminController { $depreciation_list = array('' => '') + Depreciation::lists('name', 'id'); // Grab the dropdown list of status - $statuslabel_list = array('' => 'Ready to Deploy') + Statuslabel::lists('name', 'id'); + $statuslabel_list = array('' => 'Pending') + array('1' => 'Ready to Deploy') + Statuslabel::lists('name', 'id'); return View::make('backend/assets/edit')->with('model_list',$model_list)->with('statuslabel_list',$statuslabel_list)->with('depreciation_list',$depreciation_list)->with('asset',new Asset); @@ -160,7 +160,7 @@ class AssetsController extends AdminController { $model_list = array('' => '') + Model::lists('name', 'id'); // Grab the dropdown list of status - $statuslabel_list = array('' => '') + Statuslabel::lists('name', 'id'); + $statuslabel_list = array('' => 'Pending') + array('1' => 'Ready to Deploy') + Statuslabel::lists('name', 'id'); // get depreciation list $depreciation_list = array('' => '') + Depreciation::lists('name', 'id');