mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-31 23:16:36 +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."""
|
"""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.)"))
|
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"
|
field_name = "has_other_contacts"
|
||||||
|
|
||||||
@property
|
@property
|
||||||
|
|
|
@ -239,11 +239,6 @@ class BaseYesNoForm(RegistrarForm):
|
||||||
# Default form choice mapping. Default is suitable for most cases.
|
# Default form choice mapping. Default is suitable for most cases.
|
||||||
form_choices = ((True, "Yes"), (False, "No"))
|
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):
|
def __init__(self, *args, **kwargs):
|
||||||
"""Extend the initialization of the form from RegistrarForm __init__"""
|
"""Extend the initialization of the form from RegistrarForm __init__"""
|
||||||
super().__init__(*args, **kwargs)
|
super().__init__(*args, **kwargs)
|
||||||
|
@ -261,11 +256,7 @@ class BaseYesNoForm(RegistrarForm):
|
||||||
coerce=lambda x: x.lower() == "true" if x is not None else None,
|
coerce=lambda x: x.lower() == "true" if x is not None else None,
|
||||||
choices=self.form_choices,
|
choices=self.form_choices,
|
||||||
initial=self.get_initial_value(),
|
initial=self.get_initial_value(),
|
||||||
widget=forms.RadioSelect(
|
widget=forms.RadioSelect(),
|
||||||
attrs={
|
|
||||||
# "aria-label": self.title_label
|
|
||||||
}
|
|
||||||
),
|
|
||||||
error_messages={
|
error_messages={
|
||||||
"required": self.required_error_message,
|
"required": self.required_error_message,
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue