fix: styling
This commit is contained in:
@@ -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={
|
||||
|
||||
Reference in New Issue
Block a user