from django import forms
from django.contrib.auth.forms import UserCreationForm
from django.contrib.auth.models import User
from .models import Lista


class CreateUserForm(UserCreationForm):
    class Meta:
        model = User
        fields = ['username', 'email', 'password1', 'password2']


class LoginForm(forms.Form):
    login = forms.CharField(max_length=100)
    password = forms.CharField(max_length=100, widget=forms.PasswordInput)


class ListaForm(forms.ModelForm):
    class Meta:
        model = Lista
        fields = ['wearf', 'wearm', 'quantity', 'plate_price', 'music', 'movie', 'photo']
