Remove InputRequired validator
This commit is contained in:
parent
0ace907fdf
commit
f3b43cd8a1
@ -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"))
|
|
||||||
),
|
|
||||||
],
|
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user