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:
parent
c3794bd1b6
commit
d8d791e8c9
1 changed files with 2 additions and 0 deletions
|
@ -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"}
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue