Remove inset_form prop from date picker
This commit is contained in:
parent
981171d8db
commit
17fb264440
@ -28,7 +28,6 @@ export default {
|
|||||||
type: Boolean,
|
type: Boolean,
|
||||||
default: true,
|
default: true,
|
||||||
},
|
},
|
||||||
insetForm: Boolean,
|
|
||||||
},
|
},
|
||||||
|
|
||||||
data: function() {
|
data: function() {
|
||||||
@ -37,7 +36,7 @@ export default {
|
|||||||
month: this.initialmonth,
|
month: this.initialmonth,
|
||||||
year: this.initialyear,
|
year: this.initialyear,
|
||||||
name: this.nameTag,
|
name: this.nameTag,
|
||||||
showValidation: !this.insetForm,
|
showValidation: false,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -7,8 +7,7 @@
|
|||||||
mindate=None,
|
mindate=None,
|
||||||
maxdate=None,
|
maxdate=None,
|
||||||
watch=False,
|
watch=False,
|
||||||
optional=True,
|
optional=True) -%}
|
||||||
inset_form=False) -%}
|
|
||||||
|
|
||||||
<date-selector
|
<date-selector
|
||||||
{% if maxdate %}maxdate="{{ maxdate.strftime("%Y-%m-%d") }}"{% endif %}
|
{% if maxdate %}maxdate="{{ maxdate.strftime("%Y-%m-%d") }}"{% endif %}
|
||||||
@ -19,7 +18,6 @@
|
|||||||
initialyear="{{ field.data.year }}"
|
initialyear="{{ field.data.year }}"
|
||||||
v-bind:watch='{{ watch | string | lower }}'
|
v-bind:watch='{{ watch | string | lower }}'
|
||||||
:optional='{{ optional | string | lower }}'
|
:optional='{{ optional | string | lower }}'
|
||||||
v-bind:inset-form={{ inset_form|lower }}
|
|
||||||
inline-template>
|
inline-template>
|
||||||
|
|
||||||
<fieldset class="usa-input date-picker" v-bind:class="{ 'usa-input--success': isDateValid && showValidation }">
|
<fieldset class="usa-input date-picker" v-bind:class="{ 'usa-input--success': isDateValid && showValidation }">
|
||||||
|
@ -28,7 +28,7 @@
|
|||||||
|
|
||||||
|
|
||||||
<div class="usa-input">
|
<div class="usa-input">
|
||||||
{{ DatePicker(form.date_latest_training, mindate=mindate, maxdate=maxdate, inset_form=True) }}
|
{{ DatePicker(form.date_latest_training, mindate=mindate, maxdate=maxdate) }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user