From d8d791e8c9e0862f12a960fd09d278c2342ca2b9 Mon Sep 17 00:00:00 2001 From: Kumi Date: Sat, 16 Nov 2024 20:08:32 +0100 Subject: [PATCH] feat: Add labels to registration form fields Enhances the user interface by adding labels to password fields, improving accessibility and clarity for users filling out the registration form. --- src/synapse_registration/registration/forms.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/synapse_registration/registration/forms.py b/src/synapse_registration/registration/forms.py index 9213d28..8f3890c 100644 --- a/src/synapse_registration/registration/forms.py +++ b/src/synapse_registration/registration/forms.py @@ -20,11 +20,13 @@ class EmailForm(forms.Form): class RegistrationForm(forms.Form): password1 = forms.CharField( + label="Password", widget=forms.PasswordInput( attrs={"class": "input", "placeholder": "Enter password"} ) ) password2 = forms.CharField( + label="Confirm password", widget=forms.PasswordInput( attrs={"class": "input", "placeholder": "Re-enter password"} )