Mr/text updates (#444)

* Updated error message text

* Updated field labels, intro text

* Tidy up thank you page

* Removed reference to managing a domain

* Update test language to match form language

* Fix linting error (hopefully)

* Fix linting and tests

---------

Co-authored-by: Neil Martinsen-Burrell <neil.martinsen-burrell@gsa.gov>
This commit is contained in:
Michelle Rago 2023-03-08 12:09:13 -05:00 committed by GitHub
parent 96c73471e4
commit 3cd3869c93
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 27 additions and 14 deletions

View file

@ -226,8 +226,10 @@ class OrganizationElectionForm(RegistrarForm):
is_election_board = self.cleaned_data["is_election_board"]
if is_election_board is None:
raise forms.ValidationError(
"Select “Yes” if you represent an election office. Select “No” if you"
" dont.",
(
"Select “Yes” if you represent an election office. Select “No” if"
" you dont."
),
code="required",
)
return is_election_board
@ -399,6 +401,12 @@ class CurrentSitesForm(RegistrarForm):
website = forms.URLField(
required=False,
label="Public website",
error_messages={
"invalid": (
"Enter your organization's website in the required format, like"
" www.city.com."
)
},
)
@ -676,7 +684,7 @@ class NoOtherContactsForm(RegistrarForm):
# label has to end in a space to get the label_suffix to show
label=(
"Please explain why there are no other employees from your organization"
" that we can contact."
" we can contact to help us assess your eligibility for a .gov domain."
),
widget=forms.Textarea(),
)
@ -692,7 +700,7 @@ class AnythingElseForm(RegistrarForm):
class RequirementsForm(RegistrarForm):
is_policy_acknowledged = forms.BooleanField(
label=("I read and agree to the requirements for operating .gov domains."),
label="I read and agree to the requirements for operating .gov domains.",
error_messages={
"required": (
"Check the box if you read and agree to the requirements for"