Remove InputRequired validator

This commit is contained in:
George Drummond 2019-02-01 14:11:46 -05:00
parent 0ace907fdf
commit f3b43cd8a1
No known key found for this signature in database
GPG Key ID: 296DD6077123BF17
2 changed files with 4 additions and 29 deletions

View File

@ -103,40 +103,16 @@ class FundingForm(CacheableForm):
render_kw={"accept": ".pdf,.png,application/pdf,image/png"}, render_kw={"accept": ".pdf,.png,application/pdf,image/png"},
) )
clin_01 = DecimalField( clin_01 = DecimalField(
translate("forms.task_order.clin_01_label"), translate("forms.task_order.clin_01_label"), validators=[Optional()]
validators=[
Optional(),
InputRequired(
message=(translate("forms.task_order.clin_validation_error"))
),
],
) )
clin_02 = DecimalField( clin_02 = DecimalField(
translate("forms.task_order.clin_02_label"), translate("forms.task_order.clin_02_label"), validators=[Optional()]
validators=[
Optional(),
InputRequired(
message=(translate("forms.task_order.clin_validation_error"))
),
],
) )
clin_03 = DecimalField( clin_03 = DecimalField(
translate("forms.task_order.clin_03_label"), translate("forms.task_order.clin_03_label"), validators=[Optional()]
validators=[
Optional(),
InputRequired(
message=(translate("forms.task_order.clin_validation_error"))
),
],
) )
clin_04 = DecimalField( clin_04 = DecimalField(
translate("forms.task_order.clin_04_label"), translate("forms.task_order.clin_04_label"), validators=[Optional()]
validators=[
Optional(),
InputRequired(
message=(translate("forms.task_order.clin_validation_error"))
),
],
) )

View File

@ -222,7 +222,6 @@ forms:
clin_02_label: 'CLIN 02: Classified' clin_02_label: 'CLIN 02: Classified'
clin_03_label: 'CLIN 03: Unclassified' clin_03_label: 'CLIN 03: Unclassified'
clin_04_label: 'CLIN 04: Classified' clin_04_label: 'CLIN 04: Classified'
clin_validation_error: Please enter a dollar amount
unclassified_clin_02_label: 'CLIN 02: Classified (available soon)' unclassified_clin_02_label: 'CLIN 02: Classified (available soon)'
unclassified_clin_04_label: 'CLIN 04: Classified (available soon)' unclassified_clin_04_label: 'CLIN 04: Classified (available soon)'
oversight_first_name_label: First Name oversight_first_name_label: First Name