15 lines
561 B
Python
15 lines
561 B
Python
from django import forms
|
|
from django.contrib.auth.forms import AuthenticationForm
|
|
from django.utils.translation import gettext_lazy as _
|
|
|
|
|
|
class CustomLoginForm(AuthenticationForm):
|
|
username = forms.CharField(
|
|
widget=forms.TextInput(attrs={'class': 'form-control form-control-lg', 'placeholder': 'Имя пользователя'}),
|
|
label=_('Username')
|
|
)
|
|
password = forms.CharField(
|
|
widget=forms.PasswordInput(attrs={'class': 'form-control form-control-lg', 'placeholder': 'Пароль'}),
|
|
label=_('Password')
|
|
)
|