Remove inset_form prop from date picker

This commit is contained in:
graham-dds 2019-08-27 16:32:03 -04:00
parent 981171d8db
commit 17fb264440
3 changed files with 3 additions and 6 deletions

View File

@ -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,
}
},

View File

@ -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 }">

View File

@ -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>