mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-29 22:16:33 +02:00
Remove unused param
This commit is contained in:
parent
7280b34b7c
commit
5b2ecbcf85
2 changed files with 1 additions and 11 deletions
|
@ -547,7 +547,6 @@ class OtherContactsYesNoForm(BaseYesNoForm):
|
|||
"""The yes/no field for the OtherContacts form."""
|
||||
|
||||
form_choices = ((True, "Yes, I can name other employees."), (False, "No. (We’ll ask you to explain why.)"))
|
||||
title_label = "Are there other employees who can help verify your request?"
|
||||
field_name = "has_other_contacts"
|
||||
|
||||
@property
|
||||
|
|
|
@ -239,11 +239,6 @@ class BaseYesNoForm(RegistrarForm):
|
|||
# Default form choice mapping. Default is suitable for most cases.
|
||||
form_choices = ((True, "Yes"), (False, "No"))
|
||||
|
||||
# Option to append question to aria label for screenreader accessibility.
|
||||
# Not added by default.
|
||||
title_label = ""
|
||||
aria_label = title_label.join("")
|
||||
|
||||
def __init__(self, *args, **kwargs):
|
||||
"""Extend the initialization of the form from RegistrarForm __init__"""
|
||||
super().__init__(*args, **kwargs)
|
||||
|
@ -261,11 +256,7 @@ class BaseYesNoForm(RegistrarForm):
|
|||
coerce=lambda x: x.lower() == "true" if x is not None else None,
|
||||
choices=self.form_choices,
|
||||
initial=self.get_initial_value(),
|
||||
widget=forms.RadioSelect(
|
||||
attrs={
|
||||
# "aria-label": self.title_label
|
||||
}
|
||||
),
|
||||
widget=forms.RadioSelect(),
|
||||
error_messages={
|
||||
"required": self.required_error_message,
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue