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.
This commit is contained in:
Kumi 2024-11-16 20:08:32 +01:00
parent c3794bd1b6
commit d8d791e8c9
Signed by: kumi
GPG key ID: ECBCC9082395383F

View file

@ -20,11 +20,13 @@ class EmailForm(forms.Form):
class RegistrationForm(forms.Form): class RegistrationForm(forms.Form):
password1 = forms.CharField( password1 = forms.CharField(
label="Password",
widget=forms.PasswordInput( widget=forms.PasswordInput(
attrs={"class": "input", "placeholder": "Enter password"} attrs={"class": "input", "placeholder": "Enter password"}
) )
) )
password2 = forms.CharField( password2 = forms.CharField(
label="Confirm password",
widget=forms.PasswordInput( widget=forms.PasswordInput(
attrs={"class": "input", "placeholder": "Re-enter password"} attrs={"class": "input", "placeholder": "Re-enter password"}
) )