Use translations for clin error message
This commit is contained in:
parent
090fd167bb
commit
15f54f10ca
@ -99,23 +99,27 @@ class FundingForm(CacheableForm):
|
|||||||
)
|
)
|
||||||
clin_01 = DecimalField(
|
clin_01 = DecimalField(
|
||||||
translate("forms.task_order.clin_01_label"),
|
translate("forms.task_order.clin_01_label"),
|
||||||
places=2,
|
validators=[
|
||||||
validators=[InputRequired(message="Please enter a dollar amount")],
|
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"),
|
||||||
places=2,
|
validators=[
|
||||||
validators=[InputRequired(message="Please enter a dollar amount")],
|
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"),
|
||||||
places=2,
|
validators=[
|
||||||
validators=[InputRequired(message="Please enter a dollar amount")],
|
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"),
|
||||||
places=2,
|
validators=[
|
||||||
validators=[InputRequired(message="Please enter a dollar amount")],
|
InputRequired(message=(translate("forms.task_order.clin_validation_error")))
|
||||||
|
],
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
@ -222,6 +222,7 @@ 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