diff --git a/portal/forms/teach.py b/portal/forms/teach.py index 15f49e063..553bfa8d4 100644 --- a/portal/forms/teach.py +++ b/portal/forms/teach.py @@ -18,6 +18,13 @@ class InvitedTeacherForm(forms.Form): + prefix = 'teacher_signup' + + def __init__(self, *args, **kwargs): + super().__init__(*args, **kwargs) + for field_name, field in self.fields.items(): + field.widget.attrs['id'] = f'id_teacher_signup-{field_name}' + teacher_password = forms.CharField( help_text="Enter a password", widget=forms.PasswordInput( diff --git a/portal/templates/portal/teach/invited.html b/portal/templates/portal/teach/invited.html index 42f9c1504..6825276cf 100644 --- a/portal/templates/portal/teach/invited.html +++ b/portal/templates/portal/teach/invited.html @@ -20,7 +20,7 @@