diff --git a/app/controllers/admin/AssetsController.php b/app/controllers/admin/AssetsController.php index 0c5246cbdf7a..4a105a8c2624 100644 --- a/app/controllers/admin/AssetsController.php +++ b/app/controllers/admin/AssetsController.php @@ -148,7 +148,7 @@ public function getCreate() $model_list = array('' => '') + Model::orderBy('name', 'asc')->lists('name', 'id'); // Grab the dropdown list of status - $statuslabel_list = array('' => 'Pending') + array('0' => 'Ready to Deploy') + Statuslabel::orderBy('name', 'asc')->lists('name', 'id'); + $statuslabel_list = array('' => Lang::get('general.pending')) + array('0' => Lang::get('general.ready_to_deploy')) + Statuslabel::orderBy('name', 'asc')->lists('name', 'id'); return View::make('backend/hardware/edit')->with('model_list',$model_list)->with('statuslabel_list',$statuslabel_list)->with('asset',new Asset); @@ -250,7 +250,7 @@ public function getEdit($assetId = null) $model_list = array('' => '') + Model::orderBy('name', 'asc')->lists('name', 'id'); // Grab the dropdown list of status - $statuslabel_list = array('' => 'Pending') + array('0' => 'Ready to Deploy') + Statuslabel::orderBy('name', 'asc')->lists('name', 'id'); + $statuslabel_list = array('' => Lang::get('general.pending')) + array('0' => Lang::get('general.ready_to_deploy')) + Statuslabel::orderBy('name', 'asc')->lists('name', 'id'); return View::make('backend/hardware/edit', compact('asset'))->with('model_list',$model_list)->with('statuslabel_list',$statuslabel_list); } diff --git a/app/controllers/admin/LicensesController.php b/app/controllers/admin/LicensesController.php index ce57a3e6fce0..0c245c4b669c 100644 --- a/app/controllers/admin/LicensesController.php +++ b/app/controllers/admin/LicensesController.php @@ -45,7 +45,7 @@ public function getCreate() // Show the page $license_options = array('0' => 'Top Level') + License::lists('name', 'id'); // Show the page - $depreciation_list = array('0' => 'Do Not Depreciate') + Depreciation::lists('name', 'id'); + $depreciation_list = array('0' => Lang::get('admin/licenses/form.no_depreciation')) + Depreciation::lists('name', 'id'); return View::make('backend/licenses/edit')->with('license_options',$license_options)->with('depreciation_list',$depreciation_list)->with('license',new License); } @@ -143,7 +143,7 @@ public function getEdit($licenseId = null) // Show the page $license_options = array('' => 'Top Level') + DB::table('assets')->where('id', '!=', $licenseId)->lists('name', 'id'); - $depreciation_list = array('0' => 'Do Not Depreciate') + Depreciation::lists('name', 'id'); + $depreciation_list = array('0' => Lang::get('admin/licenses/form.no_depreciation')) + Depreciation::lists('name', 'id'); return View::make('backend/licenses/edit', compact('license'))->with('license_options',$license_options)->with('depreciation_list',$depreciation_list); } diff --git a/app/lang/en/admin/hardware/form.php b/app/lang/en/admin/hardware/form.php new file mode 100644 index 000000000000..aacdf633a11b --- /dev/null +++ b/app/lang/en/admin/hardware/form.php @@ -0,0 +1,19 @@ + 'Create Asset', + 'update' => 'Asset Update', + 'tag' => 'Asset Tag', + 'name' => 'Asset Name', + 'serial' => 'Serial', + 'order' => 'Order Number', + 'model' => 'Model', + 'date' => 'Purchase Date', + 'cost' => 'Purchase Cost', + 'warranty' => 'Warranty', + 'status' => 'Status', + 'notes' => 'Notes', + 'months' => 'months', +) +; diff --git a/app/lang/en/admin/licenses/form.php b/app/lang/en/admin/licenses/form.php new file mode 100644 index 000000000000..04a7c38d3ee3 --- /dev/null +++ b/app/lang/en/admin/licenses/form.php @@ -0,0 +1,20 @@ + 'Create License', + 'update' => 'Update License', + 'name' => 'Software Name', + 'serial' => 'Serial', + 'to_name' => 'Licensed to Name', + 'to_email' => 'Licensed to Email', + 'seats' => 'Seats', + 'order' => 'Order No.', + 'date' => 'Purchase Date', + 'cost' => 'Purchase Cost', + 'depreciation' => 'Depreciation', + 'no_depreciation' => 'Do Not Depreciate', + 'notes' => 'Notes', + +) +; \ No newline at end of file diff --git a/app/lang/en/general.php b/app/lang/en/general.php index eeb0dbd10ff5..5e8ddb254a36 100755 --- a/app/lang/en/general.php +++ b/app/lang/en/general.php @@ -8,6 +8,43 @@ 'save' => 'Save', 'checkout' => 'Checkout', 'checkin' => 'Checkin', - 'cancel' => 'Cancel' + 'cancel' => 'Cancel', + 'back' => 'Back', -); + 'total_assets' => 'total assets', + 'assets_available'=> 'assets available', + 'total_licenses'=> 'total licenses', + 'licenses_available'=> 'licenses available', + 'all_assets' => 'All Assets', + 'assets' => 'Assets', + 'asset' => 'Asset', + 'license' => 'License', + 'licenses' => 'Licenses', + 'user' => 'User', + 'people' => 'People', + 'reports' => 'Reports', + 'all' => 'All', + + 'create' => 'Create New', + 'welcome' => 'Welcome, :name', + 'settings' => 'Settings', + 'profile' => 'Your profile', + 'logout' => 'Logout', + 'admin' => 'Admin', + 'groups' => 'Groups', + 'status' => 'Status', + 'status_labels' => 'Status Labels', + 'manufacturers' => 'Manufacturers', + 'categories' => 'Categories', + 'locations' => 'Locations', + 'depreciation' => 'Depreciation', + + 'sign_in' => 'Sign in', + 'deployed' => 'Deployed', + 'ready_to_deploy'=> 'Ready to Deploy', + 'pending' => 'Pending', + 'undeployable' => 'Un-deployable', + 'list_all' => 'List All', + 'asset_models' => 'Asset Models', +) +; diff --git a/app/views/backend/hardware/edit.blade.php b/app/views/backend/hardware/edit.blade.php index be6e770de4bc..e034b3dcbe93 100755 --- a/app/views/backend/hardware/edit.blade.php +++ b/app/views/backend/hardware/edit.blade.php @@ -3,9 +3,9 @@ {{-- Page title --}} @section('title') @if ($asset->id) - Asset Update :: + @lang('admin/hardware/form.update') :: @else - Create Asset :: + @lang('admin/hardware/form.create') :: @endif @parent @stop @@ -16,12 +16,12 @@