validatio issue
This commit is contained in:
parent
d1501e97fb
commit
b7d15d4d0e
|
|
@ -103,8 +103,8 @@ class CustomerController extends Controller
|
||||||
'first_name' => 'string|required',
|
'first_name' => 'string|required',
|
||||||
'last_name' => 'string|required',
|
'last_name' => 'string|required',
|
||||||
'gender' => 'required',
|
'gender' => 'required',
|
||||||
'phone' => 'nullable|numeric|unique:customers,phone',
|
'phone' => 'nullable|numeric|unique:customers,phone,',
|
||||||
'email' => 'required|unique:customers,email',
|
'email' => 'required|unique:customers,email,',
|
||||||
'date_of_birth' => 'date|before:today'
|
'date_of_birth' => 'date|before:today'
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -575,6 +575,7 @@ return [
|
||||||
'country' => 'Country',
|
'country' => 'Country',
|
||||||
'male' => 'Male',
|
'male' => 'Male',
|
||||||
'female' => 'Female',
|
'female' => 'Female',
|
||||||
|
'phone' => 'Phone',
|
||||||
'created' => 'Customer created successfully.',
|
'created' => 'Customer created successfully.',
|
||||||
'updated' => 'Customer updated successfully.',
|
'updated' => 'Customer updated successfully.',
|
||||||
'deleted' => 'Customer deleted successfully.',
|
'deleted' => 'Customer deleted successfully.',
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@
|
||||||
}
|
}
|
||||||
.table td.actions .icon.pencil-lg-icon {
|
.table td.actions .icon.pencil-lg-icon {
|
||||||
margin-right: 10px;
|
margin-right: 10px;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
@stop
|
@stop
|
||||||
|
|
||||||
|
|
@ -46,7 +46,7 @@
|
||||||
|
|
||||||
<div class="page-content">
|
<div class="page-content">
|
||||||
<div class="form-container">
|
<div class="form-container">
|
||||||
|
|
||||||
<div v-for='(attribute, index) in super_attributes' class="control-group" :class="[errors.has('add-variant-form.' + attribute.code) ? 'has-error' : '']">
|
<div v-for='(attribute, index) in super_attributes' class="control-group" :class="[errors.has('add-variant-form.' + attribute.code) ? 'has-error' : '']">
|
||||||
<label :for="attribute.code" class="required">@{{ attribute.admin_name }}</label>
|
<label :for="attribute.code" class="required">@{{ attribute.admin_name }}</label>
|
||||||
<select v-validate="'required'" v-model="variant[attribute.code]" class="control" :id="attribute.code" :name="attribute.code" :data-vv-as="'"' + attribute.admin_name + '"'">
|
<select v-validate="'required'" v-model="variant[attribute.code]" class="control" :id="attribute.code" :name="attribute.code" :data-vv-as="'"' + attribute.admin_name + '"'">
|
||||||
|
|
@ -148,7 +148,7 @@
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
<td>
|
<td>
|
||||||
<div class="control-group" :class="[errors.has(variantInputName + '[price]') ? 'has-error' : '']">
|
<div class="control-group" :class="[errors.has(variantInputName + '[weight]') ? 'has-error' : '']">
|
||||||
<input type="text" v-validate="'required'" v-model="variant.weight" :name="[variantInputName + '[weight]']" class="control" data-vv-as=""{{ __('admin::app.catalog.products.weight') }}""/>
|
<input type="text" v-validate="'required'" v-model="variant.weight" :name="[variantInputName + '[weight]']" class="control" data-vv-as=""{{ __('admin::app.catalog.products.weight') }}""/>
|
||||||
<span class="control-error" v-if="errors.has(variantInputName + '[weight]')">@{{ errors.first(variantInputName + '[weight]') }}</span>
|
<span class="control-error" v-if="errors.has(variantInputName + '[weight]')">@{{ errors.first(variantInputName + '[weight]') }}</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -232,7 +232,7 @@
|
||||||
weight: 0,
|
weight: 0,
|
||||||
status: 1
|
status: 1
|
||||||
}, this.variant));
|
}, this.variant));
|
||||||
|
|
||||||
this.resetModel();
|
this.resetModel();
|
||||||
|
|
||||||
this.$parent.closeModal();
|
this.$parent.closeModal();
|
||||||
|
|
@ -252,7 +252,7 @@
|
||||||
});
|
});
|
||||||
|
|
||||||
Vue.component('variant-list', {
|
Vue.component('variant-list', {
|
||||||
|
|
||||||
template: '#variant-list-template',
|
template: '#variant-list-template',
|
||||||
|
|
||||||
inject: ['$validator'],
|
inject: ['$validator'],
|
||||||
|
|
@ -331,7 +331,7 @@
|
||||||
if(inventories.length)
|
if(inventories.length)
|
||||||
return inventories[0]['qty'];
|
return inventories[0]['qty'];
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
},
|
},
|
||||||
|
|
||||||
updateTotalQty () {
|
updateTotalQty () {
|
||||||
|
|
|
||||||
|
|
@ -90,48 +90,57 @@
|
||||||
|
|
||||||
<select v-validate="'{{ $validations }}'" class="control" id="{{ $firstField }}[{{ $secondField }}][{{ $thirdField }}][{{ $field['name'] }}]" name="{{ $firstField }}[{{ $secondField }}][{{ $thirdField }}][{{ $field['name'] }}][]" data-vv-as=""{{ $field['name'] }}"" multiple>
|
<select v-validate="'{{ $validations }}'" class="control" id="{{ $firstField }}[{{ $secondField }}][{{ $thirdField }}][{{ $field['name'] }}]" name="{{ $firstField }}[{{ $secondField }}][{{ $thirdField }}][{{ $field['name'] }}][]" data-vv-as=""{{ $field['name'] }}"" multiple>
|
||||||
|
|
||||||
@if (isset($field['repository']))
|
@foreach($field['options'] as $option)
|
||||||
@foreach($value as $option)
|
|
||||||
<option value="{{ $option['name'] }}" {{ in_array($option['name'], explode(',', $selectedOption)) ? 'selected' : ''}}>
|
|
||||||
{{ $option['name'] }}
|
|
||||||
</option>
|
|
||||||
@endforeach
|
|
||||||
@else
|
|
||||||
@foreach($field['options'] as $option)
|
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
if($option['value'] == false) {
|
if($option['value'] == false) {
|
||||||
$value = 0;
|
$value = 0;
|
||||||
} else {
|
} else {
|
||||||
$value = $option['value'];
|
$value = $option['value'];
|
||||||
}
|
}
|
||||||
|
|
||||||
$selectedOption = core()->getConfigData($name) ?? '';
|
$selectedOption = core()->getConfigData($name) ?? '';
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<option value="{{ $value }}" {{ $value == $selectedOption ? 'selected' : ''}}>
|
<option value="{{ $value }}" {{ in_array($option['value'], explode(',', $selectedOption)) ? 'selected' : ''}}>
|
||||||
{{ $option['title'] }}
|
{{ $option['title'] }}
|
||||||
</option>
|
</option>
|
||||||
|
|
||||||
@endforeach
|
@endforeach
|
||||||
@endif
|
|
||||||
|
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
@elseif ($field['type'] == 'country')
|
@elseif ($field['type'] == 'country')
|
||||||
|
|
||||||
<select type="text" v-validate="'required'" class="control" id="country" name="{{ $firstField }}[{{ $secondField }}][{{ $thirdField }}][{{ $field['name'] }}]" data-vv-as=""{{ __('admin::app.customers.customers.country') }}"" onchange="myFunction()">
|
<select type="text" v-validate="'{{ $validations }}'" class="control" id="country" name="{{ $firstField }}[{{ $secondField }}][{{ $thirdField }}][{{ $field['name'] }}]" data-vv-as=""{{ __('admin::app.customers.customers.country') }}"" onchange="selectStates()">
|
||||||
<option value=""></option>
|
<option value=""></option>
|
||||||
|
|
||||||
|
<?php
|
||||||
|
$selectedOption = core()->getConfigData($name) ?? '';
|
||||||
|
?>
|
||||||
|
|
||||||
@foreach (core()->countries() as $country)
|
@foreach (core()->countries() as $country)
|
||||||
|
|
||||||
<option value="{{ $country->code }}">
|
<option value="{{ $country->code }}" {{ $country->code == $selectedOption ? 'selected' : ''}}>
|
||||||
{{ $country->name }}
|
{{ $country->name }}
|
||||||
</option>
|
</option>
|
||||||
|
|
||||||
@endforeach
|
@endforeach
|
||||||
|
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
@elseif ($field['type'] == 'state')
|
||||||
|
|
||||||
|
<?php
|
||||||
|
$selectedOption = core()->getConfigData($name) ?? '';
|
||||||
|
?>
|
||||||
|
|
||||||
|
<select type="text" class="control" id="state" onchange="stateCode()">
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<input type="text" class="control" id="othstate" value="{{ $selectedOption }}" onkeyup="stateCode()">
|
||||||
|
|
||||||
|
<input type="hidden" v-validate="'{{ $validations }}'" class="control" id="stateValue" name="{{ $firstField }}[{{ $secondField }}][{{ $thirdField }}][{{ $field['name'] }}]" data-vv-as=""{{ __('admin::app.customers.customers.state') }}"" value="{{ $selectedOption }}">
|
||||||
|
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
|
|
@ -140,26 +149,46 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@push('scripts')
|
@push('scripts')
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
$('#othstate').show();
|
||||||
|
$('#state').hide();
|
||||||
|
|
||||||
function myFunction() {
|
var countryStates = <?php echo json_encode(core()->groupedStatesByCountries()) ;?>;
|
||||||
|
|
||||||
|
if (document.getElementById("othstate")) {
|
||||||
|
var stateName = document.getElementById("othstate").value;
|
||||||
|
selectStates();
|
||||||
|
}
|
||||||
|
|
||||||
|
function selectStates() {
|
||||||
var countryId = document.getElementById("country").value;
|
var countryId = document.getElementById("country").value;
|
||||||
var countryStates = <?php echo json_encode(core()->groupedStatesByCountries()) ;?>;
|
|
||||||
|
|
||||||
for (var key in countryStates) {
|
for (var key in countryStates) {
|
||||||
if(key == countryId){
|
if (countryStates[countryId]) {
|
||||||
|
$('#othstate').hide();
|
||||||
|
$('#state').show();
|
||||||
|
|
||||||
|
if (key == countryId){
|
||||||
|
$('#state').empty();
|
||||||
|
for (state in countryStates[key]) {
|
||||||
|
$("#state").append('<option value="'+countryStates[key][state]['code']+'">'+countryStates[key][state]['default_name']+'</option>');
|
||||||
|
|
||||||
for(state in countryStates[key]) {
|
if (stateName) {
|
||||||
console.log(state);
|
$("#state > [value=" + stateName + "]").attr("selected", "true");
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
$('#othstate').show();
|
||||||
|
$('#state').hide();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function stateCode() {
|
||||||
|
document.getElementById("stateValue").value = document.getElementById(event.target.id).value;
|
||||||
}
|
}
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
|
||||||
|
|
@ -62,6 +62,12 @@
|
||||||
<span class="control-error" v-if="errors.has('date_of_birth')">@{{ errors.first('date_of_birth') }}</span>
|
<span class="control-error" v-if="errors.has('date_of_birth')">@{{ errors.first('date_of_birth') }}</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="control-group" :class="[errors.has('phone') ? 'has-error' : '']">
|
||||||
|
<label for="phone">{{ __('admin::app.customers.customers.phone') }}</label>
|
||||||
|
<input type="text" class="control" name="phone" v-validate="'numeric|max:10'" value="{{ old('phone') }}" data-vv-as=""{{ __('admin::app.customers.customers.phone') }}"">
|
||||||
|
<span class="control-error" v-if="errors.has('phone')">@{{ errors.first('phone') }}</span>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="control-group">
|
<div class="control-group">
|
||||||
<label for="customerGroup" >{{ __('admin::app.customers.customers.customer_group') }}</label>
|
<label for="customerGroup" >{{ __('admin::app.customers.customers.customer_group') }}</label>
|
||||||
<select class="control" name="customer_group_id">
|
<select class="control" name="customer_group_id">
|
||||||
|
|
|
||||||
|
|
@ -34,19 +34,20 @@
|
||||||
|
|
||||||
<div class="control-group" :class="[errors.has('first_name') ? 'has-error' : '']">
|
<div class="control-group" :class="[errors.has('first_name') ? 'has-error' : '']">
|
||||||
<label for="first_name" class="required"> {{ __('admin::app.customers.customers.first_name') }}</label>
|
<label for="first_name" class="required"> {{ __('admin::app.customers.customers.first_name') }}</label>
|
||||||
<input type="text" class="control" name="first_name" v-validate="'required'" value="{{$customer->first_name}}" data-vv-as=""{{ __('shop::app.customers.customers.first_name') }}""/>
|
<input type="text" class="control" name="first_name" v-validate="'required'" value="{{$customer->first_name}}"
|
||||||
|
data-vv-as=""{{ __('shop::app.customer.signup-form.firstname') }}""/>
|
||||||
<span class="control-error" v-if="errors.has('first_name')">@{{ errors.first('first_name') }}</span>
|
<span class="control-error" v-if="errors.has('first_name')">@{{ errors.first('first_name') }}</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="control-group" :class="[errors.has('last_name') ? 'has-error' : '']">
|
<div class="control-group" :class="[errors.has('last_name') ? 'has-error' : '']">
|
||||||
<label for="last_name" class="required"> {{ __('admin::app.customers.customers.last_name') }}</label>
|
<label for="last_name" class="required"> {{ __('admin::app.customers.customers.last_name') }}</label>
|
||||||
<input type="text" class="control" name="last_name" v-validate="'required'" value="{{$customer->last_name}}" data-vv-as=""{{ __('shop::app.customers.customers.last_name') }}""/>
|
<input type="text" class="control" name="last_name" v-validate="'required'" value="{{$customer->last_name}}" data-vv-as=""{{ __('shop::app.customer.signup-form.lastname') }}"">
|
||||||
<span class="control-error" v-if="errors.has('last_name')">@{{ errors.first('last_name') }}</span>
|
<span class="control-error" v-if="errors.has('last_name')">@{{ errors.first('last_name') }}</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="control-group" :class="[errors.has('email') ? 'has-error' : '']">
|
<div class="control-group" :class="[errors.has('email') ? 'has-error' : '']">
|
||||||
<label for="email" class="required"> {{ __('admin::app.customers.customers.email') }}</label>
|
<label for="email" class="required"> {{ __('admin::app.customers.customers.email') }}</label>
|
||||||
<input type="email" class="control" name="email" v-validate="'required|email'" value="{{$customer->email}}" data-vv-as=""{{ __('shop::app.customers.customers.email') }}""/>
|
<input type="email" class="control" name="email" v-validate="'required|email'" value="{{$customer->email}}" data-vv-as=""{{ __('shop::app.customer.signup-form.email') }}"">
|
||||||
<span class="control-error" v-if="errors.has('email')">@{{ errors.first('email') }}</span>
|
<span class="control-error" v-if="errors.has('email')">@{{ errors.first('email') }}</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
@ -65,6 +66,12 @@
|
||||||
<span class="control-error" v-if="errors.has('date_of_birth')">@{{ errors.first('date_of_birth') }}</span>
|
<span class="control-error" v-if="errors.has('date_of_birth')">@{{ errors.first('date_of_birth') }}</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="control-group" :class="[errors.has('phone') ? 'has-error' : '']">
|
||||||
|
<label for="phone">{{ __('admin::app.customers.customers.phone') }}</label>
|
||||||
|
<input type="text" class="control" name="phone" v-validate="'numeric|max:10'" value="{{ $customer->phone }}" data-vv-as=""{{ __('admin::app.customers.customers.phone') }}"">
|
||||||
|
<span class="control-error" v-if="errors.has('phone')">@{{ errors.first('phone') }}</span>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="control-group">
|
<div class="control-group">
|
||||||
<label for="customerGroup" >{{ __('admin::app.customers.customers.customer_group') }}</label>
|
<label for="customerGroup" >{{ __('admin::app.customers.customers.customer_group') }}</label>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -695,7 +695,6 @@ class Core
|
||||||
foreach (config('core') as $coreData) {
|
foreach (config('core') as $coreData) {
|
||||||
if (isset($coreData['fields'])) {
|
if (isset($coreData['fields'])) {
|
||||||
foreach ($coreData['fields'] as $field) {
|
foreach ($coreData['fields'] as $field) {
|
||||||
|
|
||||||
$name = $coreData['key'] . '.' . $field['name'];
|
$name = $coreData['key'] . '.' . $field['name'];
|
||||||
|
|
||||||
if ($name == $fieldName ) {
|
if ($name == $fieldName ) {
|
||||||
|
|
|
||||||
|
|
@ -99,6 +99,7 @@ class CustomerController extends Controller
|
||||||
'gender' => 'required',
|
'gender' => 'required',
|
||||||
'date_of_birth' => 'date|before:today',
|
'date_of_birth' => 'date|before:today',
|
||||||
'email' => 'email|unique:customers,email,'.$id,
|
'email' => 'email|unique:customers,email,'.$id,
|
||||||
|
'phone' => 'nullable|numeric|unique:customers,phone,'. $id,
|
||||||
'password' => 'confirmed'
|
'password' => 'confirmed'
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,7 @@ class Customer extends Authenticatable
|
||||||
|
|
||||||
protected $table = 'customers';
|
protected $table = 'customers';
|
||||||
|
|
||||||
protected $fillable = ['first_name', 'channel_id', 'last_name', 'gender', 'date_of_birth', 'email', 'password', 'customer_group_id', 'subscribed_to_news_letter', 'is_verified', 'token'];
|
protected $fillable = ['first_name', 'channel_id', 'last_name', 'gender', 'date_of_birth', 'email', 'password', 'customer_group_id', 'subscribed_to_news_letter', 'is_verified', 'token', 'phone'];
|
||||||
|
|
||||||
protected $hidden = ['password', 'remember_token'];
|
protected $hidden = ['password', 'remember_token'];
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -35,9 +35,6 @@ return [
|
||||||
[
|
[
|
||||||
'title' => 'Pending',
|
'title' => 'Pending',
|
||||||
'value' => 'pending'
|
'value' => 'pending'
|
||||||
], [
|
|
||||||
'title' => 'Approved',
|
|
||||||
'value' => 'Approved'
|
|
||||||
], [
|
], [
|
||||||
'title' => 'Pending Payment',
|
'title' => 'Pending Payment',
|
||||||
'value' => 'pending_payment'
|
'value' => 'pending_payment'
|
||||||
|
|
@ -86,9 +83,6 @@ return [
|
||||||
[
|
[
|
||||||
'title' => 'Pending',
|
'title' => 'Pending',
|
||||||
'value' => 'pending'
|
'value' => 'pending'
|
||||||
], [
|
|
||||||
'title' => 'Approved',
|
|
||||||
'value' => 'Approved'
|
|
||||||
], [
|
], [
|
||||||
'title' => 'Pending Payment',
|
'title' => 'Pending Payment',
|
||||||
'value' => 'pending_payment'
|
'value' => 'pending_payment'
|
||||||
|
|
@ -137,9 +131,6 @@ return [
|
||||||
[
|
[
|
||||||
'title' => 'Pending',
|
'title' => 'Pending',
|
||||||
'value' => 'pending'
|
'value' => 'pending'
|
||||||
], [
|
|
||||||
'title' => 'Approved',
|
|
||||||
'value' => 'Approved'
|
|
||||||
], [
|
], [
|
||||||
'title' => 'Pending Payment',
|
'title' => 'Pending Payment',
|
||||||
'value' => 'pending_payment'
|
'value' => 'pending_payment'
|
||||||
|
|
|
||||||
|
|
@ -106,16 +106,21 @@ return [
|
||||||
'name' => 'Origin',
|
'name' => 'Origin',
|
||||||
'sort' => 0,
|
'sort' => 0,
|
||||||
'fields' => [
|
'fields' => [
|
||||||
// [
|
|
||||||
// 'name' => 'country',
|
|
||||||
// 'title' => 'Country',
|
|
||||||
// 'type' => 'country_state',
|
|
||||||
// 'stateName' => 'state'
|
|
||||||
// 'validation' => 'required',
|
|
||||||
// 'channel_based' => true,
|
|
||||||
// 'locale_based' => true
|
|
||||||
// ],
|
|
||||||
[
|
[
|
||||||
|
'name' => 'country',
|
||||||
|
'title' => 'Country',
|
||||||
|
'type' => 'country',
|
||||||
|
'validation' => 'required',
|
||||||
|
'channel_based' => true,
|
||||||
|
'locale_based' => true
|
||||||
|
], [
|
||||||
|
'name' => 'state',
|
||||||
|
'title' => 'State',
|
||||||
|
'type' => 'state',
|
||||||
|
'validation' => 'required',
|
||||||
|
'channel_based' => true,
|
||||||
|
'locale_based' => true
|
||||||
|
], [
|
||||||
'name' => 'address1',
|
'name' => 'address1',
|
||||||
'title' => 'Address Line 1',
|
'title' => 'Address Line 1',
|
||||||
'type' => 'text',
|
'type' => 'text',
|
||||||
|
|
|
||||||
|
|
@ -63,6 +63,12 @@
|
||||||
<span class="control-error" v-if="errors.has('email')">@{{ errors.first('email') }}</span>
|
<span class="control-error" v-if="errors.has('email')">@{{ errors.first('email') }}</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="control-group" :class="[errors.has('phone') ? 'has-error' : '']">
|
||||||
|
<label for="phone">{{ __('shop::app.customer.account.profile.phone') }}</label>
|
||||||
|
<input type="text" class="control" name="phone" v-validate="'numeric|max:10'" value="{{ old('phone') ?? $customer->phone }}" data-vv-as=""{{ __('shop::app.customer.account.profile.phone') }}"">
|
||||||
|
<span class="control-error" v-if="errors.has('phone')">@{{ errors.first('phone') }}</span>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="control-group" :class="[errors.has('oldpassword') ? 'has-error' : '']">
|
<div class="control-group" :class="[errors.has('oldpassword') ? 'has-error' : '']">
|
||||||
<label for="password">{{ __('shop::app.customer.account.profile.opassword') }}</label>
|
<label for="password">{{ __('shop::app.customer.account.profile.opassword') }}</label>
|
||||||
<input type="password" class="control" name="oldpassword" data-vv-as=""{{ __('shop::app.customer.account.profile.opassword') }}"" v-validate="'min:6'">
|
<input type="password" class="control" name="oldpassword" data-vv-as=""{{ __('shop::app.customer.account.profile.opassword') }}"" v-validate="'min:6'">
|
||||||
|
|
|
||||||
|
|
@ -55,6 +55,11 @@
|
||||||
<td>{{ $customer->email }}</td>
|
<td>{{ $customer->email }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td>{{ __('shop::app.customer.account.profile.phone') }}</td>
|
||||||
|
<td>{{ $customer->phone }}</td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
{{-- @if($customer->subscribed_to_news_letter == 1)
|
{{-- @if($customer->subscribed_to_news_letter == 1)
|
||||||
<tr>
|
<tr>
|
||||||
<td> {{ __('shop::app.footer.subscribe-newsletter') }}</td>
|
<td> {{ __('shop::app.footer.subscribe-newsletter') }}</td>
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@ $(function() {
|
||||||
var currentElement = $(e.currentTarget);
|
var currentElement = $(e.currentTarget);
|
||||||
if(currentElement.attr('disabled') == "disabled")
|
if(currentElement.attr('disabled') == "disabled")
|
||||||
return;
|
return;
|
||||||
|
|
||||||
$('.dropdown-list').hide();
|
$('.dropdown-list').hide();
|
||||||
if(currentElement.hasClass('active')) {
|
if(currentElement.hasClass('active')) {
|
||||||
currentElement.removeClass('active');
|
currentElement.removeClass('active');
|
||||||
|
|
@ -59,7 +59,7 @@ $(function() {
|
||||||
height = dropdown.height() + 50;
|
height = dropdown.height() + 50;
|
||||||
var topOffset = dropdown.offset().top - 70;
|
var topOffset = dropdown.offset().top - 70;
|
||||||
var bottomOffset = $(window).height() - topOffset - dropdown.height();
|
var bottomOffset = $(window).height() - topOffset - dropdown.height();
|
||||||
|
|
||||||
if(bottomOffset > topOffset || height < bottomOffset) {
|
if(bottomOffset > topOffset || height < bottomOffset) {
|
||||||
dropdown.removeClass("bottom");
|
dropdown.removeClass("bottom");
|
||||||
if(dropdown.hasClass('top-right')) {
|
if(dropdown.hasClass('top-right')) {
|
||||||
|
|
|
||||||
|
|
@ -1,2 +0,0 @@
|
||||||
*
|
|
||||||
!.gitignore
|
|
||||||
Loading…
Reference in New Issue