diff --git a/src/api/views.py b/src/api/views.py index a7dd7600a..3071712a7 100644 --- a/src/api/views.py +++ b/src/api/views.py @@ -29,7 +29,7 @@ DOMAIN_API_MESSAGES = { "unavailable": mark_safe( # nosec "That domain isn’t available. " "" - "Read more about choosing your .gov domain.".format(public_site_url("domains/choosing")) + "Read more about choosing your .gov domain.".format(public_site_url("domains/choosing")) ), "invalid": "Enter a domain using only letters, numbers, or hyphens (though we don't recommend using hyphens).", "success": "That domain is available! We’ll try to give you the domain you want, \ diff --git a/src/djangooidc/tests/test_views.py b/src/djangooidc/tests/test_views.py index da12f4fd5..282e91e1f 100644 --- a/src/djangooidc/tests/test_views.py +++ b/src/djangooidc/tests/test_views.py @@ -51,7 +51,7 @@ class ViewsTest(TestCase): # assert self.assertEqual(response.status_code, 500) self.assertTemplateUsed(response, "500.html") - self.assertIn("server error", response.content.decode("utf-8")) + self.assertIn("Server error", response.content.decode("utf-8")) def test_login_callback_reads_next(self, mock_client): # setup diff --git a/src/registrar/admin.py b/src/registrar/admin.py index e041ef728..8d3b1d29f 100644 --- a/src/registrar/admin.py +++ b/src/registrar/admin.py @@ -1253,7 +1253,7 @@ admin.site.register(models.DomainInformation, DomainInformationAdmin) admin.site.register(models.Domain, DomainAdmin) admin.site.register(models.DraftDomain, DraftDomainAdmin) # Host and HostIP removed from django admin because changes in admin -# do not propogate to registry and logic not applied +# do not propagate to registry and logic not applied admin.site.register(models.Host, MyHostAdmin) admin.site.register(models.Website, WebsiteAdmin) admin.site.register(models.PublicContact, AuditedAdmin) diff --git a/src/registrar/forms/application_wizard.py b/src/registrar/forms/application_wizard.py index fcf6bda7a..2802b1893 100644 --- a/src/registrar/forms/application_wizard.py +++ b/src/registrar/forms/application_wizard.py @@ -262,7 +262,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.", ) ], ) @@ -353,7 +353,7 @@ class CurrentSitesForm(RegistrarForm): required=False, label="Public website", error_messages={ - "invalid": ("Enter your organization's current website in the required format, like www.city.com.") + "invalid": ("Enter your organization's current website in the required format, like example.com.") }, ) @@ -543,7 +543,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."}, ) @@ -574,7 +574,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 clean(self): diff --git a/src/registrar/forms/domain.py b/src/registrar/forms/domain.py index 5977449c3..17616df4b 100644 --- a/src/registrar/forms/domain.py +++ b/src/registrar/forms/domain.py @@ -59,7 +59,7 @@ class DomainNameserverForm(forms.Form): # add custom error messages self.fields["server"].error_messages.update( { - "required": "A minimum of 2 name servers are required.", + "required": "At least two name servers are required.", } ) diff --git a/src/registrar/templates/403.html b/src/registrar/templates/403.html index 91652d807..660e5d34c 100644 --- a/src/registrar/templates/403.html +++ b/src/registrar/templates/403.html @@ -9,10 +9,10 @@
You must be an authorized user and need to be signed in to view this page. - Try logging in again. + Try signing in again.
If you'd like help with this error contact us. diff --git a/src/registrar/templates/500.html b/src/registrar/templates/500.html index 3c95900b2..dfbd90142 100644 --- a/src/registrar/templates/500.html +++ b/src/registrar/templates/500.html @@ -9,10 +9,10 @@
{{ friendly_message }}
diff --git a/src/registrar/templates/domain_dsdata.html b/src/registrar/templates/domain_dsdata.html index 15343413b..1ec4c1f93 100644 --- a/src/registrar/templates/domain_dsdata.html +++ b/src/registrar/templates/domain_dsdata.html @@ -114,7 +114,7 @@ aria-describedby="Your DNSSEC records will be deleted from the registry." data-force-action > - {% include 'includes/modal.html' with cancel_button_resets_ds_form=True modal_heading="Warning: You are about to remove all DS records on your domain" modal_description="To fully disable DNSSEC: In addition to removing your DS records here you’ll also need to delete the DS records at your DNS host. To avoid causing your domain to appear offline you should wait to delete your DS records at your DNS host until the Time to Live (TTL) expires. This is often less than 24 hours, but confirm with your provider." modal_button=modal_button|safe %} + {% include 'includes/modal.html' with cancel_button_resets_ds_form=True modal_heading="Warning: You are about to remove all DS records on your domain." modal_description="To fully disable DNSSEC: In addition to removing your DS records here, you’ll need to delete the DS records at your DNS host. To avoid causing your domain to appear offline, you should wait to delete your DS records at your DNS host until the Time to Live (TTL) expires. This is often less than 24 hours, but confirm with your provider." modal_button=modal_button|safe %}