Merge branch 'dk/661-other-contacts' into dk/903-delete-other-contacts

This commit is contained in:
David Kennedy 2024-01-09 14:58:35 -05:00
commit 19866f2d9a
No known key found for this signature in database
GPG key ID: 6528A5386E66B96B
19 changed files with 48 additions and 45 deletions

View file

@ -306,7 +306,7 @@ class OrganizationContactForm(RegistrarForm):
validators=[
RegexValidator(
"^[0-9]{5}(?:-[0-9]{4})?$|^$",
message="Enter a zip code in the required format, like 12345 or 12345-6789.",
message="Enter a zip code in the form of 12345 or 12345-6789.",
)
],
)
@ -397,7 +397,7 @@ class CurrentSitesForm(RegistrarForm):
required=False,
label="Public website",
error_messages={
"invalid": ("Enter your organizations current website in the required format, like www.city.com.")
"invalid": ("Enter your organization's current website in the required format, like example.com.")
},
)
@ -591,7 +591,7 @@ class YourContactForm(RegistrarForm):
)
phone = PhoneNumberField(
label="Phone",
error_messages={"required": "Enter your phone number."},
error_messages={"invalid": "Enter a valid 10-digit phone number.", "required": "Enter your phone number."},
)
@ -646,7 +646,10 @@ class OtherContactsForm(RegistrarForm):
)
phone = PhoneNumberField(
label="Phone",
error_messages={"required": "Enter a phone number for this contact."},
error_messages={
"invalid": "Enter a valid 10-digit phone number.",
"required": "Enter a phone number for this contact.",
},
)
def __init__(self, *args, **kwargs):