Remove inset_form prop from options inputs
This commit is contained in:
parent
1901172d6e
commit
981171d8db
@ -22,7 +22,6 @@ export default {
|
|||||||
type: String,
|
type: String,
|
||||||
default: '',
|
default: '',
|
||||||
},
|
},
|
||||||
insetForm: Boolean,
|
|
||||||
},
|
},
|
||||||
|
|
||||||
created: function() {
|
created: function() {
|
||||||
@ -37,7 +36,7 @@ export default {
|
|||||||
const showError = (this.initialErrors && this.initialErrors.length) || false
|
const showError = (this.initialErrors && this.initialErrors.length) || false
|
||||||
return {
|
return {
|
||||||
showError: showError,
|
showError: showError,
|
||||||
showValid: !this.insetForm && (!showError && !!this.initialValue),
|
showValid: false,
|
||||||
validationError: this.initialErrors.join(' '),
|
validationError: this.initialErrors.join(' '),
|
||||||
value: this.initialValue,
|
value: this.initialValue,
|
||||||
}
|
}
|
||||||
|
@ -9,8 +9,7 @@
|
|||||||
show_validation=True,
|
show_validation=True,
|
||||||
disabled=False,
|
disabled=False,
|
||||||
watch=False,
|
watch=False,
|
||||||
optional=True,
|
optional=True) -%}
|
||||||
inset_form=False) -%}
|
|
||||||
<optionsinput
|
<optionsinput
|
||||||
name='{{ field.name }}'
|
name='{{ field.name }}'
|
||||||
inline-template
|
inline-template
|
||||||
@ -20,7 +19,6 @@
|
|||||||
v-bind:watch='{{ watch | string | lower }}'
|
v-bind:watch='{{ watch | string | lower }}'
|
||||||
v-bind:optional={{ optional|lower }}
|
v-bind:optional={{ optional|lower }}
|
||||||
v-bind:null-option="'{{ field.default }}'"
|
v-bind:null-option="'{{ field.default }}'"
|
||||||
v-bind:inset-form={{ inset_form|lower }}
|
|
||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
v-bind:class="['usa-input', { 'usa-input--error': showError, 'usa-input--success': showValid }]">
|
v-bind:class="['usa-input', { 'usa-input--error': showError, 'usa-input--success': showValid }]">
|
||||||
|
@ -22,9 +22,9 @@
|
|||||||
{{ TextInput(form.email, validation='email') }}
|
{{ TextInput(form.email, validation='email') }}
|
||||||
{{ PhoneInput(form.phone_number, form.phone_ext) }}
|
{{ PhoneInput(form.phone_number, form.phone_ext) }}
|
||||||
|
|
||||||
{{ OptionsInput(form.service_branch, inset_form=True) }}
|
{{ OptionsInput(form.service_branch) }}
|
||||||
{{ OptionsInput(form.citizenship, inset_form=True) }}
|
{{ OptionsInput(form.citizenship) }}
|
||||||
{{ OptionsInput(form.designation, inset_form=True) }}
|
{{ OptionsInput(form.designation) }}
|
||||||
|
|
||||||
|
|
||||||
<div class="usa-input">
|
<div class="usa-input">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user