Remove unused param

This commit is contained in:
Erin Song 2024-12-05 16:08:59 -08:00
parent 7280b34b7c
commit 5b2ecbcf85
No known key found for this signature in database
2 changed files with 1 additions and 11 deletions

View file

@ -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. (Well ask you to explain why.)"))
title_label = "Are there other employees who can help verify your request?"
field_name = "has_other_contacts"
@property

View file

@ -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,
},