From 10df2bc950cfe8617d4c8a4aacf291b9a7328e72 Mon Sep 17 00:00:00 2001 From: snipe Date: Fri, 29 Nov 2013 14:46:38 -0500 Subject: [PATCH 1/6] Bootstrap 3 --- app/views/backend/models/index.blade.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/app/views/backend/models/index.blade.php b/app/views/backend/models/index.blade.php index 3d07be6314..ac6f23c5d2 100755 --- a/app/views/backend/models/index.blade.php +++ b/app/views/backend/models/index.blade.php @@ -24,7 +24,7 @@ Asset Models :: @lang('admin/models/table.modelnumber') @lang('admin/models/table.numassets') Depreciation - Category + Category @lang('table.actions') @@ -46,9 +46,8 @@ Asset Models :: {{ $model->category->name }} @endif - @lang('button.edit') - @lang('button.delete') - + + @endforeach From b68e39472dd049e74ebf5e7993ac5b0e9e9d79b4 Mon Sep 17 00:00:00 2001 From: snipe Date: Fri, 29 Nov 2013 15:19:00 -0500 Subject: [PATCH 2/6] Updating to bootstrap 3 --- app/controllers/admin/ModelsController.php | 6 +- app/views/backend/models/edit.blade.php | 102 ++++++++++----------- app/views/backend/models/index.blade.php | 15 +-- 3 files changed, 62 insertions(+), 61 deletions(-) diff --git a/app/controllers/admin/ModelsController.php b/app/controllers/admin/ModelsController.php index dbc82ce7d5..3e239d7ec7 100644 --- a/app/controllers/admin/ModelsController.php +++ b/app/controllers/admin/ModelsController.php @@ -40,7 +40,7 @@ class ModelsController extends AdminController { // Show the page $depreciation_list = array('' => 'Do Not Depreciate') + Depreciation::lists('name', 'id'); $manufacturer_list = array('' => 'Select One') + Manufacturer::lists('name', 'id'); - $category_list = array('' => '') + DB::table('categories')->lists('name', 'id'); + $category_list = array('' => '') + DB::table('categories')->whereNull('deleted_at')->lists('name', 'id'); $view = View::make('backend/models/edit'); $view->with('category_list',$category_list); $view->with('depreciation_list',$depreciation_list); @@ -81,7 +81,7 @@ class ModelsController extends AdminController { if($model->save()) { // Redirect to the new model page - return Redirect::to("assets/models")->with('success', Lang::get('admin/models/message.create.success')); + return Redirect::to("hardware/models")->with('success', Lang::get('admin/models/message.create.success')); } } else @@ -92,7 +92,7 @@ class ModelsController extends AdminController { } // Redirect to the model create page - return Redirect::to('assets/models/create')->with('error', Lang::get('admin/models/message.create.error')); + return Redirect::to('hardware/models/create')->with('error', Lang::get('admin/models/message.create.error')); } diff --git a/app/views/backend/models/edit.blade.php b/app/views/backend/models/edit.blade.php index c106733fb3..5fcae473c8 100755 --- a/app/views/backend/models/edit.blade.php +++ b/app/views/backend/models/edit.blade.php @@ -12,80 +12,80 @@ {{-- Page content --}} @section('content') - +
+ +
- -
- -
- -
- - {{ $errors->first('name', ':message') }} -
+ + +
+ +
+ + {{ $errors->first('name', ' :message') }} +
-
- -
- - {{ $errors->first('modelno', ':message') }} -
+ +
+ +
+ + {{ $errors->first('modelno', ' :message') }} +
- -
- -
- {{ Form::select('manufacturer_id', $manufacturer_list , Input::old('manufacturer_id', $model->manufacturer_id), array('class'=>'select2', 'style'=>'width:250px')) }} - {{ $errors->first('manufacturer_id', ':message') }} -
+
+ +
+ {{ Form::select('manufacturer_id', $manufacturer_list , Input::old('manufacturer_id', $model->manufacturer_id), array('class'=>'select2', 'style'=>'width:350px')) }} + {{ $errors->first('manufacturer_id', ' :message') }} +
-
- -
- {{ Form::select('depreciation_id', $depreciation_list , Input::old('depreciation_id', $model->depreciation_id), array('class'=>'select2', 'style'=>'width:250px')) }} - {{ $errors->first('depreciation_id', ':message') }} -
+
+ +
+ {{ Form::select('depreciation_id', $depreciation_list , Input::old('depreciation_id', $model->depreciation_id), array('class'=>'select2', 'style'=>'width:350px')) }} + {{ $errors->first('depreciation_id', ' :message') }} +
-
- -
- {{ Form::select('category_id', $category_list , Input::old('category_id', $model->category_id), array('class'=>'select2', 'style'=>'width:250px')) }} - {{ $errors->first('category_id', ':message') }} -
+
+ +
+ {{ Form::select('category_id', $category_list , Input::old('category_id', $model->category_id), array('class'=>'select2', 'style'=>'width:350px')) }} + {{ $errors->first('category_id', ' :message') }} +
- -
- - -
-
- @lang('general.cancel') - -
-
+ +
+ +
+ Cancel + +
+
+
@stop diff --git a/app/views/backend/models/index.blade.php b/app/views/backend/models/index.blade.php index ac6f23c5d2..e4f492518e 100755 --- a/app/views/backend/models/index.blade.php +++ b/app/views/backend/models/index.blade.php @@ -8,15 +8,15 @@ Asset Models :: {{-- Page content --}} @section('content') -