fix: styling

This commit is contained in:
2025-01-17 12:06:24 +01:00
parent 7fe4fefe48
commit d2aa4f4dd7
15 changed files with 90 additions and 26 deletions
+9 -1
View File
@@ -2,8 +2,16 @@ from django import forms
from django.contrib.auth.forms import AuthenticationForm, UsernameField
from django.utils.text import gettext_lazy as _
from web.mixins import StylingMixin
class LoginForm(StylingMixin, AuthenticationForm):
styled_fields = ['username', 'password', ]
placeholder_for_field = {
"username": _("pablo@shoppy.com"),
"password": "********"
}
class LoginForm(AuthenticationForm):
username = UsernameField(
widget=forms.EmailInput(
attrs={