Initial ANDI screenreader fixes

This commit is contained in:
CocoByte 2024-10-08 17:48:25 -06:00
parent f299dc822c
commit 8d13ea2f9f
No known key found for this signature in database
GPG key ID: BBFAA2526384C97F
3 changed files with 9 additions and 3 deletions

View file

@ -27,6 +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?"
)
@ -70,6 +71,7 @@ class OrganizationFederalForm(RegistrarForm):
federal_type = forms.ChoiceField(
choices=BranchChoices.choices,
widget=forms.RadioSelect,
label = "Which federal branch is your organization in?",
error_messages={"required": ("Select the part of the federal government your organization is in.")},
)
@ -81,7 +83,8 @@ class OrganizationElectionForm(RegistrarForm):
(True, "Yes"),
(False, "No"),
],
)
),
label="Is your organization an election office?"
)
def clean_is_election_board(self):
@ -440,6 +443,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."
)
phone = PhoneNumberField(
label="Phone",

View file

@ -2,7 +2,7 @@
{% load field_helpers %}
{% block form_instructions %}
<h2 class="margin-bottom-05">
<h2 id="id_domain_request_federal_org_header" class="margin-bottom-05">
Which federal branch is your organization in?
</h2>
{% endblock %}

View file

@ -21,7 +21,9 @@
{% input_with_errors form.first_name %}
{% input_with_errors form.last_name %}
{% input_with_errors form.title %}
{% input_with_errors form.email %}
{% with sublabel_text="Enter an email address in the required format, like name@example.com." %}
{% input_with_errors form.email %}
{% endwith %}
<button type="submit" class="usa-button">Save</button>
</form>
{% elif not form.full_name.value and not form.title.value and not form.email.value %}