A free open source IT asset/license management system
Merge branch 'develop' into chore/migrate-select-helper
Marcus Moore00e7795414ab
diff --cc resources/views/settings/branding.blade.phpindex be6120a4f7,ee31677bc0..96e42bc99c--- a/resources/views/settings/branding.blade.php+++ b/resources/views/settings/branding.blade.php@@@ -64,17 -64,10 +64,17 @@@<!-- Branding --><div class="form-group {{ $errors->has('brand') ? 'error' : '' }}"><div class="col-md-3">- {{ Form::label('brand', trans('admin/settings/general.web_brand')) }}+ <label for="brand">{{ trans('admin/settings/general.web_brand') }}</label></div><div class="col-md-9">- {!! Form::select('brand', array('1'=>'Text','2'=>'Logo','3'=>'Logo + Text'), old('brand', $setting->brand), array('class' => 'form-control select2', 'style'=>'width: 150px ;')) !!}+ <x-input.select+ name="brand"+ id="brand"+ :options="['1'=>'Text','2'=>'Logo','3'=>'Logo + Text']"+ :selected="old('brand', $setting->brand)"+ class="form-control"+ style="width: 150px"+ />{!! $errors->first('brand', '<span class="alert-msg" aria-hidden="true">:message</span>') !!}</div></div>diff --cc resources/views/settings/general.blade.phpindex 3a549525d3,be19a9ee30..3e9a26489a--- a/resources/views/settings/general.blade.php+++ b/resources/views/settings/general.blade.php@@@ -355,16 -353,12 +353,15 @@@<!-- dash chart --><div class="form-group {{ $errors->has('dash_chart_type') ? 'error' : '' }}"><div class="col-md-3">- {{ Form::label('show_in_model_list',- trans('general.pie_chart_type')) }}+ <label for="show_in_model_list">{{ trans('general.pie_chart_type') }}</label></div><div class="col-md-9">- {{ Form::select('dash_chart_type', array(- 'name' => 'Status Label Name',- 'type' => 'Status Label Type'), old('dash_chart_type', $setting->dash_chart_type), ['class' =>'select2', 'style' => 'width: 80%']) }}+ <x-input.select+ name="dash_chart_type"+ :options="['name' => 'Status Label Name', 'type' => 'Status Label Type']"+ :selected="old('dash_chart_type', $setting->dash_chart_type)"+ style="width: 80%"+ /></div></div>@@@ -372,16 -366,14 +369,16 @@@<!-- Depreciation method --><div class="form-group {{ $errors->has('depreciation_method') ? 'error' : '' }}"><div class="col-md-3">- {{ Form::label('depreciation_method', trans('Depreciation method')) }}+ <label for="depreciation_method">{{ trans('Depreciation method') }}</label></div><div class="col-md-9">- {{ Form::select('depreciation_method', array(- 'default' => 'Linear (default)',- 'half_1' => 'Half-year convention, always applied',- 'half_2' => 'Half-year convention, applied with condition',- ), old('username_format', $setting->depreciation_method), ['class' =>'select2', 'style' => 'width: 80%']) }}+ <x-input.select+ name="depreciation_method"+ id="depreciation_method"+ :options="['default' => 'Linear (default)', 'half_1' => 'Half-year convention, always applied', 'half_2' => 'Half-year convention, applied with condition']"+ :selected="old('depreciation_method', $setting->depreciation_method)"+ style="width: 80%"+ /></div></div><!-- /.form-group -->