Move checkbox validation message to translations

This commit is contained in:
graham-dds 2019-12-12 10:41:04 -05:00
parent 80f028540c
commit cbea71259c
2 changed files with 6 additions and 1 deletions

View File

@ -42,6 +42,10 @@ class PortfolioCreationForm(BaseForm):
widget=ListWidget(prefix_label=False),
option_widget=CheckboxInput(),
validators=[
InputRequired(message="You must select at least one defense component.")
InputRequired(
message=translate(
"forms.portfolio.defense_component.validation_message"
)
)
],
)

View File

@ -203,6 +203,7 @@ forms:
marine_corps: Marine Corps
navy: Navy
other: Other
validation_message: You must select at least one defense component.
help_text: |
<p>
Select the DOD component(s) that will fund all Applications within this Portfolio.