Move checkbox validation message to translations
This commit is contained in:
parent
80f028540c
commit
cbea71259c
@ -42,6 +42,10 @@ class PortfolioCreationForm(BaseForm):
|
|||||||
widget=ListWidget(prefix_label=False),
|
widget=ListWidget(prefix_label=False),
|
||||||
option_widget=CheckboxInput(),
|
option_widget=CheckboxInput(),
|
||||||
validators=[
|
validators=[
|
||||||
InputRequired(message="You must select at least one defense component.")
|
InputRequired(
|
||||||
|
message=translate(
|
||||||
|
"forms.portfolio.defense_component.validation_message"
|
||||||
|
)
|
||||||
|
)
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
|
@ -203,6 +203,7 @@ forms:
|
|||||||
marine_corps: Marine Corps
|
marine_corps: Marine Corps
|
||||||
navy: Navy
|
navy: Navy
|
||||||
other: Other
|
other: Other
|
||||||
|
validation_message: You must select at least one defense component.
|
||||||
help_text: |
|
help_text: |
|
||||||
<p>
|
<p>
|
||||||
Select the DOD component(s) that will fund all Applications within this Portfolio.
|
Select the DOD component(s) that will fund all Applications within this Portfolio.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user