unnecessary control and responsive are fixed
This commit is contained in:
		| @@ -114,7 +114,7 @@ | ||||
|             }, | ||||
|  | ||||
|             next() { | ||||
|                 if (this.active++ > 2) this.active = 0; | ||||
|                 if (this.active++ > 2); | ||||
|             } | ||||
|         } | ||||
|     } | ||||
|   | ||||
| @@ -73,7 +73,7 @@ | ||||
|             }, | ||||
|  | ||||
|             next() { | ||||
|                 if (this.active++ > 2) this.active = 0; | ||||
|                 if (this.active++ > 2); | ||||
|             } | ||||
|         } | ||||
|     } | ||||
|   | ||||
| @@ -112,7 +112,7 @@ | ||||
|             }, | ||||
|  | ||||
|             next() { | ||||
|                 if (this.active++ > 2) this.active = 0; | ||||
|                 if (this.active++ > 2); | ||||
|             } | ||||
|         } | ||||
|     } | ||||
|   | ||||
							
								
								
									
										2
									
								
								resources/assets/js/views/wizard/company.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								resources/assets/js/views/wizard/company.js
									
									
									
									
										vendored
									
									
								
							| @@ -40,7 +40,7 @@ const app = new Vue({ | ||||
|  | ||||
|     methods: { | ||||
|         next() { | ||||
|             if (this.active++ > 3) this.active = 0; | ||||
|             if (this.active++ > 3); | ||||
|         } | ||||
|     } | ||||
| }); | ||||
|   | ||||
| @@ -108,7 +108,7 @@ const app = new Vue({ | ||||
|         }, | ||||
|  | ||||
|         next() { | ||||
|             if (this.active++ > 3) this.active = 0; | ||||
|             if (this.active++ > 3); | ||||
|         } | ||||
|     } | ||||
| }); | ||||
|   | ||||
							
								
								
									
										2
									
								
								resources/assets/js/views/wizard/finish.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								resources/assets/js/views/wizard/finish.js
									
									
									
									
										vendored
									
									
								
							| @@ -37,7 +37,7 @@ const app = new Vue({ | ||||
|  | ||||
|     methods: { | ||||
|         next() { | ||||
|             if (this.active++ > 3) this.active = 0; | ||||
|             if (this.active++ > 3); | ||||
|           } | ||||
|     } | ||||
| }); | ||||
|   | ||||
							
								
								
									
										2
									
								
								resources/assets/js/views/wizard/taxes.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								resources/assets/js/views/wizard/taxes.js
									
									
									
									
										vendored
									
									
								
							| @@ -80,7 +80,7 @@ const app = new Vue({ | ||||
|         }, | ||||
|  | ||||
|         next() { | ||||
|             if (this.active++ > 3) this.active = 0; | ||||
|             if (this.active++ > 3); | ||||
|         } | ||||
|     } | ||||
| }); | ||||
|   | ||||
| @@ -8,9 +8,9 @@ | ||||
|  | ||||
|         <div class="card-body border-bottom-0"> | ||||
|             <div class="row"> | ||||
|                 <div class="col-12 text-right"> | ||||
|                 <div class="col-md-12 text-right"> | ||||
|                     <span> | ||||
|                         <button type="button" @click="onAddCurrency" class="btn btn-success btn-sm"> | ||||
|                         <button type="button" @click="onAddCurrency" class="btn btn-success header-button-top btn-sm"> | ||||
|                             <span class="fa fa-plus"></span>  {{ trans('general.add_new') }} | ||||
|                         </button> | ||||
|                     </span> | ||||
| @@ -32,24 +32,24 @@ | ||||
|                 <table class="table table-flush table-hover" id='tbl-currencies'> | ||||
|                     <thead class="thead-light"> | ||||
|                         <tr class="row table-head-line"> | ||||
|                             <th class="col-xs-4 col-sm-3">@sortablelink('name', trans('general.name'))</th> | ||||
|                             <th class="col-sm-3 hidden-sm">@sortablelink('code', trans('currencies.code'))</th> | ||||
|                             <th class="col-sm-2 hidden-sm">@sortablelink('rate', trans('currencies.rate'))</th> | ||||
|                             <th class="col-xs-4 col-sm-2">@sortablelink('enabled', trans('general.enabled'))</th> | ||||
|                             <th class="col-xs-4 col-sm-2 text-center">{{ trans('general.actions') }}</th> | ||||
|                             <th class="col-xs-4 col-sm-4 col-md-3">@sortablelink('name', trans('general.name'))</th> | ||||
|                             <th class="col-md-3 d-none d-md-block">@sortablelink('code', trans('currencies.code'))</th> | ||||
|                             <th class="col-md-2 d-none d-md-block">@sortablelink('rate', trans('currencies.rate'))</th> | ||||
|                             <th class="col-xs-4 col-sm-4 col-md-2 ">@sortablelink('enabled', trans('general.enabled'))</th> | ||||
|                             <th class="col-xs-4 col-sm-4 col-md-2 text-center">{{ trans('general.actions') }}</th> | ||||
|                         </tr> | ||||
|                     </thead> | ||||
|                     <tbody> | ||||
|                         @foreach($currencies as $item) | ||||
|                             <tr class="row align-items-center border-top-1" id="currency-{{ $item->id }}"> | ||||
|                                 <td class="col-xs-4 col-sm-3 currency-name"> | ||||
|                                 <td class="col-xs-4 col-sm-4 col-md-3"> | ||||
|                                     <a href="javascript:void(0);" class="text-success" @click="onEditCurrency('{{ $item->id }}')"> | ||||
|                                         {{ $item->name }} | ||||
|                                     </a> | ||||
|                                 </td> | ||||
|                                 <td class="col-sm-3 hidden-sm currency-code">{{ $item->code }}</td> | ||||
|                                 <td class="col-sm-2 hidden-sm currency-rate">{{ $item->rate }}</td> | ||||
|                                 <td class="col-xs-4 col-sm-2 currency-status"> | ||||
|                                 <td class="col-md-3 d-none d-md-block">{{ $item->code }}</td> | ||||
|                                 <td class="col-md-2 d-none d-md-block">{{ $item->rate }}</td> | ||||
|                                 <td class="col-xs-4 col-sm-4 col-md-2"> | ||||
|                                     @if (user()->can('update-settings-currencies')) | ||||
|                                         {{ Form::enabledGroup($item->id, $item->name, $item->enabled) }} | ||||
|                                     @else | ||||
| @@ -60,7 +60,7 @@ | ||||
|                                         @endif | ||||
|                                     @endif | ||||
|                                 </td> | ||||
|                                 <td class="col-xs-4 col-sm-2 text-center"> | ||||
|                                 <td class="col-xs-4 col-sm-4 col-md-2 text-center"> | ||||
|                                     <div class="dropdown"> | ||||
|                                         <a class="btn btn-neutral btn-sm text-light items-align-center py-2" href="#" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> | ||||
|                                             <i class="fa fa-ellipsis-h text-muted"></i> | ||||
| @@ -80,19 +80,19 @@ | ||||
|                         @endforeach | ||||
|  | ||||
|                         <tr class="row align-items-center border-top-1" v-show="show"> | ||||
|                             <td class="col-xs-4 col-sm-3 currency-name"> | ||||
|                             <td class="col-xs-4 col-sm-4 col-md-3"> | ||||
|                                 {{ Form::textGroup('name', trans('general.name'), 'font', [], null, '') }} | ||||
|                             </td> | ||||
|                             <td class="col-sm-3 hidden-sm currency-code"> | ||||
|                             <td class="col-md-3 d-none d-md-block"> | ||||
|                                 {{ Form::selectGroup('code', trans('currencies.code'), 'code', $codes, null, ['required' => 'required', 'change' => 'onChangeCode'], '') }} | ||||
|                             </td> | ||||
|                             <td class="col-sm-2 hidden-sm currency-rate"> | ||||
|                             <td class="col-md-2 d-none d-md-block"> | ||||
|                                 {{ Form::textGroup('rate', trans('currencies.rate'), 'percentage', ['required' => 'required'], null, '') }} | ||||
|                             </td> | ||||
|                             <td class="col-xs-4 col-sm-2 currency-status"> | ||||
|                             <td class="col-xs-4 col-sm-4 col-md-2"> | ||||
|                                 {{ Form::radioGroup('enabled', trans('general.enabled')) }} | ||||
|                             </td> | ||||
|                             <td class="col-xs-4 col-sm-2 text-center"> | ||||
|                             <td class="col-xs-4 col-sm-4 col-md-2 text-center"> | ||||
|                                 {!! Form::button( | ||||
|                                     '<span class="btn-inner--icon"><i class="fas fa-save"></i></span>', [ | ||||
|                                     ':disabled' => 'form.loading', | ||||
| @@ -122,12 +122,12 @@ | ||||
|  | ||||
|         <div class="card-footer"> | ||||
|             <div class="row"> | ||||
|                 <div class="col-md-6"> | ||||
|                 <div class="col-sm-6"> | ||||
|                     <a href="{{ url('wizard/companies') }}" class="btn btn-white header-button-top"> | ||||
|                         <span class="fas fa-arrow-left"></span>  {{ trans('modules.back') }} | ||||
|                     </a> | ||||
|                 </div> | ||||
|                 <div class="col-md-6 text-right"> | ||||
|                 <div class="col-sm-6 text-right"> | ||||
|                     <a href="{{ url('wizard/taxes') }}" id="wizard-skip" class="btn btn-white header-button-top" @click="next"> | ||||
|                         <span class="fas fa-arrow-right"></span>  {{ trans('general.skip') }} | ||||
|                     </a> | ||||
|   | ||||
| @@ -49,12 +49,12 @@ | ||||
|  | ||||
|         <div class="card-footer"> | ||||
|             <div class="row"> | ||||
|                 <div class="col-md-6"> | ||||
|                 <div class="col-sm-6"> | ||||
|                     <a href="{{ url('wizard/taxes') }}" class="btn btn-white header-button-top"> | ||||
|                         <span class="fas fa-arrow-left"></span>  {{ trans('modules.back') }} | ||||
|                     </a> | ||||
|                 </div> | ||||
|                 <div class="col-md-6 text-right"> | ||||
|                 <div class="col-sm-6 text-right"> | ||||
|                     <a href="{{ url('/') }}" class="btn btn-success header-button-top" @click="next"> | ||||
|                         <span class="fa fa-tachometer-alt"></span>  {{ trans('general.go_to', ['name' => trans_choice('general.dashboards', 1)]) }} | ||||
|                     </a> | ||||
|   | ||||
| @@ -8,9 +8,9 @@ | ||||
|  | ||||
|         <div class="card-body border-bottom-0"> | ||||
|             <div class="row"> | ||||
|                 <div class="col-12 text-right"> | ||||
|                 <div class="col-md-12 text-right"> | ||||
|                     <span> | ||||
|                         <button type="button" @click="onAddTax" class="btn btn-success btn-sm"> | ||||
|                         <button type="button" @click="onAddTax" class="btn btn-success header-button-top btn-sm"> | ||||
|                             <span class="fa fa-plus"></span>  {{ trans('general.add_new') }} | ||||
|                         </button> | ||||
|                     </span> | ||||
| @@ -32,22 +32,22 @@ | ||||
|                 <table class="table table-flush table-hover" id='tbl-taxes'> | ||||
|                     <thead class="thead-light"> | ||||
|                         <tr class="row table-head-line"> | ||||
|                             <th class="col-xs-4 col-sm-3">@sortablelink('name', trans('general.name'))</th> | ||||
|                             <th class="col-sm-3 hidden-sm">@sortablelink('rate', trans('taxes.rate_percent'))</th> | ||||
|                             <th class="col-xs-4 col-sm-3">@sortablelink('enabled', trans('general.enabled'))</th> | ||||
|                             <th class="col-xs-4 col-sm-3 text-center">{{ trans('general.actions') }}</th> | ||||
|                             <th class="col-xs-4 col-sm-4 col-md-3">@sortablelink('name', trans('general.name'))</th> | ||||
|                             <th class="col-md-3 d-none d-md-block">@sortablelink('rate', trans('taxes.rate_percent'))</th> | ||||
|                             <th class="col-xs-4 col-sm-4 col-md-3">@sortablelink('enabled', trans('general.enabled'))</th> | ||||
|                             <th class="col-xs-4 col-sm-4 col-md-3 text-center">{{ trans('general.actions') }}</th> | ||||
|                         </tr> | ||||
|                     </thead> | ||||
|                     <tbody> | ||||
|                         @foreach($taxes as $item) | ||||
|                             <tr class="row align-items-center border-top-1" id="tax-{{ $item->id }}"> | ||||
|                                 <td class="col-xs-4 col-sm-3 tax-name"> | ||||
|                                 <td class="col-xs-4 col-sm-4 col-md-3 tax-name"> | ||||
|                                     <a href="javascript:void(0);" class="text-success" @click="onEditTax('{{ $item->id }}')"> | ||||
|                                         {{ $item->name }} | ||||
|                                     </a> | ||||
|                                 </td> | ||||
|                                 <td class="col-sm-3 hidden-sm">{{ $item->rate }}</td> | ||||
|                                 <td class="col-xs-4 col-sm-3"> | ||||
|                                 <td class="col-md-3 d-none d-md-block">{{ $item->rate }}</td> | ||||
|                                 <td class="col-xs-4 col-sm-4 col-md-3"> | ||||
|                                     @if (user()->can('update-settings-taxes')) | ||||
|                                         {{ Form::enabledGroup($item->id, $item->name, $item->enabled) }} | ||||
|                                     @else | ||||
| @@ -58,7 +58,7 @@ | ||||
|                                         @endif | ||||
|                                     @endif | ||||
|                                 </td> | ||||
|                                 <td class="col-xs-4 col-sm-3 text-center"> | ||||
|                                 <td class="col-xs-4 col-sm-4 col-md-3 text-center"> | ||||
|                                     <div class="dropdown"> | ||||
|                                         <a class="btn btn-neutral btn-sm text-light items-align-center py-2" href="#" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> | ||||
|                                             <i class="fa fa-ellipsis-h text-muted"></i> | ||||
| @@ -78,16 +78,16 @@ | ||||
|                         @endforeach | ||||
|  | ||||
|                         <tr class="row align-items-center border-top-1" v-show="show"> | ||||
|                             <td class="col-xs-4 col-sm-3 tax-name"> | ||||
|                             <td class="col-xs-4 col-sm-4 col-md-3"> | ||||
|                                 {{ Form::textGroup('name', trans('general.name'), 'font', [], null, '') }} | ||||
|                             </td> | ||||
|                             <td class="col-sm-3 hidden-sm tax-rate"> | ||||
|                             <td class="col-md-3 d-none d-md-block"> | ||||
|                                 {{ Form::textGroup('rate', trans('currencies.rate'), 'percentage', ['required' => 'required'], null, '') }} | ||||
|                             </td> | ||||
|                             <td class="col-xs-4 col-sm-3 tax-status"> | ||||
|                             <td class="col-xs-4 col-sm-4 col-md-3"> | ||||
|                                 {{ Form::radioGroup('enabled', trans('general.enabled')) }} | ||||
|                             </td> | ||||
|                             <td class="col-xs-4 col-sm-3 text-center"> | ||||
|                             <td class="col-xs-4 col-sm-4 col-md-3 text-center"> | ||||
|                                 {!! Form::button( | ||||
|                                     '<span class="btn-inner--icon"><i class="fas fa-save"></i></span>', [ | ||||
|                                     ':disabled' => 'form.loading', | ||||
| @@ -105,12 +105,12 @@ | ||||
|  | ||||
|         <div class="card-footer"> | ||||
|             <div class="row"> | ||||
|                 <div class="col-md-6"> | ||||
|                 <div class="col-sm-6"> | ||||
|                     <a href="{{ url('wizard/currencies') }}" class="btn btn-white header-button-top"> | ||||
|                         <span class="fas fa-arrow-left"></span>  {{ trans('modules.back') }} | ||||
|                     </a> | ||||
|                 </div> | ||||
|                 <div class="col-md-6 text-right"> | ||||
|                 <div class="col-sm-6 text-right"> | ||||
|                     <a href="{{ url('wizard/finish') }}" id="wizard-skip" class="btn btn-white header-button-top" @click="next"> | ||||
|                         <span class="fas fa-arrow-right"></span>  {{ trans('general.skip') }} | ||||
|                     </a> | ||||
|   | ||||
		Reference in New Issue
	
	Block a user