From 3e811f80ce3a6b9be342cd77290d73e6d938cf19 Mon Sep 17 00:00:00 2001 From: Rebecca Hsieh Date: Fri, 15 Dec 2023 11:07:31 -0800 Subject: [PATCH 1/7] Remove middle name and phone number --- src/registrar/forms/domain.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/registrar/forms/domain.py b/src/registrar/forms/domain.py index ac96393b4..c08b43ba0 100644 --- a/src/registrar/forms/domain.py +++ b/src/registrar/forms/domain.py @@ -227,8 +227,6 @@ class AuthorizingOfficialContactForm(ContactForm): self.fields["email"].error_messages = { "required": "Enter an email address in the required format, like name@example.com." } - self.fields["phone"].error_messages["required"] = "Enter a phone number for your authorizing official." - class DomainSecurityEmailForm(forms.Form): """Form for adding or editing a security email to a domain.""" From 66899da2837c847b7e5f36fe76bd78bd0bbb07c7 Mon Sep 17 00:00:00 2001 From: Rebecca Hsieh Date: Fri, 15 Dec 2023 11:19:53 -0800 Subject: [PATCH 2/7] Remove from form --- src/registrar/forms/domain.py | 1 + src/registrar/templates/domain_authorizing_official.html | 6 ------ 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/src/registrar/forms/domain.py b/src/registrar/forms/domain.py index c08b43ba0..64a653ff5 100644 --- a/src/registrar/forms/domain.py +++ b/src/registrar/forms/domain.py @@ -228,6 +228,7 @@ class AuthorizingOfficialContactForm(ContactForm): "required": "Enter an email address in the required format, like name@example.com." } + class DomainSecurityEmailForm(forms.Form): """Form for adding or editing a security email to a domain.""" diff --git a/src/registrar/templates/domain_authorizing_official.html b/src/registrar/templates/domain_authorizing_official.html index 57a315e86..e7fc12a5e 100644 --- a/src/registrar/templates/domain_authorizing_official.html +++ b/src/registrar/templates/domain_authorizing_official.html @@ -19,18 +19,12 @@ {% input_with_errors form.first_name %} - {% input_with_errors form.middle_name %} - {% input_with_errors form.last_name %} {% input_with_errors form.title %} {% input_with_errors form.email %} - {% input_with_errors form.phone %} - - -