mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-27 04:58:42 +02:00
Initial ANDI screenreader fixes
This commit is contained in:
parent
f299dc822c
commit
8d13ea2f9f
3 changed files with 9 additions and 3 deletions
|
@ -27,6 +27,7 @@ class OrganizationTypeForm(RegistrarForm):
|
||||||
choices=DomainRequest.OrganizationChoicesVerbose.choices,
|
choices=DomainRequest.OrganizationChoicesVerbose.choices,
|
||||||
widget=forms.RadioSelect,
|
widget=forms.RadioSelect,
|
||||||
error_messages={"required": "Select the type of organization you represent."},
|
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(
|
federal_type = forms.ChoiceField(
|
||||||
choices=BranchChoices.choices,
|
choices=BranchChoices.choices,
|
||||||
widget=forms.RadioSelect,
|
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.")},
|
error_messages={"required": ("Select the part of the federal government your organization is in.")},
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -81,7 +83,8 @@ class OrganizationElectionForm(RegistrarForm):
|
||||||
(True, "Yes"),
|
(True, "Yes"),
|
||||||
(False, "No"),
|
(False, "No"),
|
||||||
],
|
],
|
||||||
)
|
),
|
||||||
|
label="Is your organization an election office?"
|
||||||
)
|
)
|
||||||
|
|
||||||
def clean_is_election_board(self):
|
def clean_is_election_board(self):
|
||||||
|
@ -440,6 +443,7 @@ class OtherContactsForm(RegistrarForm):
|
||||||
message="Response must be less than 320 characters.",
|
message="Response must be less than 320 characters.",
|
||||||
)
|
)
|
||||||
],
|
],
|
||||||
|
help_text="Enter an email address in the required format, like name@example.com."
|
||||||
)
|
)
|
||||||
phone = PhoneNumberField(
|
phone = PhoneNumberField(
|
||||||
label="Phone",
|
label="Phone",
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
{% load field_helpers %}
|
{% load field_helpers %}
|
||||||
|
|
||||||
{% block form_instructions %}
|
{% 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?
|
Which federal branch is your organization in?
|
||||||
</h2>
|
</h2>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
|
@ -21,7 +21,9 @@
|
||||||
{% input_with_errors form.first_name %}
|
{% input_with_errors form.first_name %}
|
||||||
{% input_with_errors form.last_name %}
|
{% input_with_errors form.last_name %}
|
||||||
{% input_with_errors form.title %}
|
{% input_with_errors form.title %}
|
||||||
|
{% with sublabel_text="Enter an email address in the required format, like name@example.com." %}
|
||||||
{% input_with_errors form.email %}
|
{% input_with_errors form.email %}
|
||||||
|
{% endwith %}
|
||||||
<button type="submit" class="usa-button">Save</button>
|
<button type="submit" class="usa-button">Save</button>
|
||||||
</form>
|
</form>
|
||||||
{% elif not form.full_name.value and not form.title.value and not form.email.value %}
|
{% elif not form.full_name.value and not form.title.value and not form.email.value %}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue