From b79841d481c5e3c3febddcc2e083614643fa967f Mon Sep 17 00:00:00 2001 From: snipe Date: Tue, 28 Jul 2015 11:18:18 -0700 Subject: [PATCH 1/8] Fix for @uberbrady's missing route on inline adding --- app/routes.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/routes.php b/app/routes.php index f5c15445aa..0cc4f62c29 100755 --- a/app/routes.php +++ b/app/routes.php @@ -61,6 +61,7 @@ Route::group(array('prefix' => 'api', 'namespace' => 'Controllers\Admin', 'befor /*---Models API---*/ Route::group( [ 'prefix' => 'models'], function() { + Route::resource('/','ModelsController'); Route::get('list/{status?}', array('as'=>'api.models.list', 'uses'=>'ModelsController@getDatatable')); Route::get('{modelId}/check', function ($modelId) { $model = Model::find($modelId); @@ -75,6 +76,7 @@ Route::group(array('prefix' => 'api', 'namespace' => 'Controllers\Admin', 'befor Route::get('list', ['as'=>'api.categories.list', 'uses'=>'CategoriesController@getDatatable']); Route::get('{categoryID}/view', ['as'=>'api.categories.view', 'uses'=>'CategoriesController@getDataView']); }); + /*-- Suppliers API (mostly for creating new ones in-line while creating an asset) --*/ Route::group(['prefix'=>'suppliers'], function () { Route::resource('/', 'SuppliersController'); @@ -443,7 +445,7 @@ Route::group(array('prefix' => 'auth'), function () { [ 'as' => 'account/accept-assets', 'uses' => 'ViewAssetsController@getAcceptAsset' ] ); Route::post( 'accept-asset/{logID}', [ 'as' => 'account/asset-accepted', 'uses' => 'ViewAssetsController@postAcceptAsset' ] ); - + # Profile Route::get( 'requestable-assets', From fe2fb63007fe1b4f1f0aa44739f2b8709758ac54 Mon Sep 17 00:00:00 2001 From: snipe Date: Tue, 28 Jul 2015 11:31:08 -0700 Subject: [PATCH 2/8] Localization strings for inline modals --- app/views/backend/hardware/edit.blade.php | 76 +++++++++++------------ 1 file changed, 38 insertions(+), 38 deletions(-) diff --git a/app/views/backend/hardware/edit.blade.php b/app/views/backend/hardware/edit.blade.php index 07929eb029..653acad3cb 100755 --- a/app/views/backend/hardware/edit.blade.php +++ b/app/views/backend/hardware/edit.blade.php @@ -18,64 +18,64 @@ @@ -192,7 +192,7 @@
{{ Form::select('supplier_id', $supplier_list , Input::old('supplier_id', $asset->supplier_id), array('class'=>'select2', 'style'=>'min-width:350px','id'=>'supplier_select_id')) }} - Add new Supplier... + {{ $errors->first('supplier_id', '
:message') }}
@@ -242,7 +242,7 @@
{{ Form::select('status_id', $statuslabel_list , Input::old('status_id', $asset->status_id), array('class'=>'select2 status_id', 'style'=>'width:350px','id'=>'status_select_id')) }} - Add new Status... +

@lang('admin/hardware/form.help_checkout')

@@ -257,7 +257,7 @@
{{ Form::select('assigned_to', $assigned_to , Input::old('assigned_to', $asset->assigned_to), array('class'=>'select2', 'id'=>'assigned_to', 'style'=>'min-width:350px')) }} - Add new User... + {{ $errors->first('assigned_to', '
:message') }}
@@ -277,7 +277,7 @@
{{ Form::select('rtd_location_id', $location_list , Input::old('rtd_location_id', $asset->rtd_location_id), array('class'=>'select2', 'style'=>'width:350px','id'=>'rtd_location_select')) }} - Add new Location... + {{ $errors->first('rtd_location_id', '
:message') }}
diff --git a/app/views/backend/layouts/default.blade.php b/app/views/backend/layouts/default.blade.php index 3f3bdea3a7..5eed5f7f71 100644 --- a/app/views/backend/layouts/default.blade.php +++ b/app/views/backend/layouts/default.blade.php @@ -19,7 +19,7 @@ - + @@ -40,6 +40,7 @@ + diff --git a/public/assets/css/bootstrap/bootstrap-overrides.css b/public/assets/css/bootstrap/bootstrap-overrides.css index b56c31e231..8a906fb557 100644 --- a/public/assets/css/bootstrap/bootstrap-overrides.css +++ b/public/assets/css/bootstrap/bootstrap-overrides.css @@ -21,7 +21,7 @@ h1,h2,h3,h4,h5,h6{ } /* alerts */ -.alert [class^="icon-"], +.alert [class^="icon-"], .alert [class*=" icon-"] { font-size: 27px; position: relative; @@ -31,15 +31,15 @@ h1,h2,h3,h4,h5,h6{ display: inline-block; color: #f1c359; } -.alert-success [class^="icon-"], +.alert-success [class^="icon-"], .alert-success [class*=" icon-"] { color: #81ad53; } -.alert-info [class^="icon-"], +.alert-info [class^="icon-"], .alert-info [class*=" icon-"] { color: #4993c6; } -.alert-danger [class^="icon-"], +.alert-danger [class^="icon-"], .alert-danger [class*=" icon-"] { color: #d5393e; } @@ -60,7 +60,7 @@ textarea { } input[type="text"], input[type="password"], -textarea { +textarea { font-size: 13px; -webkit-box-shadow: inset 0 0px 1px rgba(0, 0, 0, 0.075); -moz-box-shadow: inset 0 0px 1px rgba(0, 0, 0, 0.075); @@ -105,7 +105,7 @@ input[type="password"].inline-input:hover { input[type="text"]:focus, input[type="password"]:focus, -textarea:focus{ +textarea:focus{ border-color: #A2CEF0; -webkit-box-shadow: inset 0 0px 1px rgba(0, 0, 0, 0.075), 0 0 4px rgba(82, 168, 236, 0.6); -moz-box-shadow: inset 0 0px 1px rgba(0, 0, 0, 0.075), 0 0 4px rgba(82, 168, 236, 0.6); @@ -173,9 +173,9 @@ textarea::-webkit-input-placeholder { /* PREPEND & APPEND INPUT */ -.input-group input, -.input-group input, -.input-group .uneditable-input, +.input-group input, +.input-group input, +.input-group .uneditable-input, .input-group .uneditable-input { border: 1px solid #d6e2eb; } @@ -240,11 +240,11 @@ textarea::-webkit-input-placeholder { /* dropdown caret */ .dropdown .caret { position: relative; - top: -1px; + top: -1px; } /* dropdown active */ -.dropdown.open > a, -.dropdown.open > a:hover, +.dropdown.open > a, +.dropdown.open > a:hover, .dropdown.open > a:focus { border-color: #101417; } @@ -273,7 +273,7 @@ textarea::-webkit-input-placeholder { border-bottom-color: #333e4a; border-right-color: #566676; border-left-color: #566676; -} +} .pagination.inverse a:hover, .pagination.inverse span:hover { background-color: #000; @@ -344,4 +344,8 @@ table th span.line{ } } - +.verticon { + font-size:30px; + vertical-align: middle; + padding-left: 5px; +} From 20eb2df9be6ae00f560f91d191b2f7ee9854f8ef Mon Sep 17 00:00:00 2001 From: Brady Wetherington Date: Tue, 28 Jul 2015 14:25:47 -0700 Subject: [PATCH 4/8] Fix to nicen up the layout for the inline-adding and Bootstrapify it. --- app/views/backend/hardware/edit.blade.php | 96 +++++++++++------------ 1 file changed, 46 insertions(+), 50 deletions(-) diff --git a/app/views/backend/hardware/edit.blade.php b/app/views/backend/hardware/edit.blade.php index e32c5a8751..7e3befe241 100755 --- a/app/views/backend/hardware/edit.blade.php +++ b/app/views/backend/hardware/edit.blade.php @@ -18,63 +18,55 @@