This commit is contained in:
CocoByte 2024-10-11 00:06:31 -06:00
parent ddc98b6371
commit f1ba7e9209
No known key found for this signature in database
GPG key ID: BBFAA2526384C97F

View file

@ -27,7 +27,7 @@ class OrganizationTypeForm(RegistrarForm):
choices=DomainRequest.OrganizationChoicesVerbose.choices,
widget=forms.RadioSelect,
error_messages={"required": "Select the type of organization you represent."},
label="What kind of U.S.-based government organization do you represent?"
label="What kind of U.S.-based government organization do you represent?",
)
@ -84,7 +84,7 @@ class OrganizationElectionForm(RegistrarForm):
(False, "No"),
],
),
label="Is your organization an election office?"
label="Is your organization an election office?",
)
def clean_is_election_board(self):
@ -229,8 +229,10 @@ class SeniorOfficialForm(RegistrarForm):
email = forms.EmailField(
label="Email",
max_length=None,
error_messages={"invalid": ("Enter an email address in the required format, like name@example.com."),
"required": ("Enter an email address in the required format, like name@example.com.")},
error_messages={
"invalid": ("Enter an email address in the required format, like name@example.com."),
"required": ("Enter an email address in the required format, like name@example.com."),
},
validators=[
MaxLengthValidator(
320,
@ -444,7 +446,7 @@ class OtherContactsForm(RegistrarForm):
message="Response must be less than 320 characters.",
)
],
help_text="Enter an email address in the required format, like name@example.com."
help_text="Enter an email address in the required format, like name@example.com.",
)
phone = PhoneNumberField(
label="Phone",