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