from django import forms

from .models import Evento
from .models import ListaEspera


class EventoForm(forms.ModelForm):
    class Meta:
        model = Evento
        fields = ['nombre', 'descripcion', 'fecha', 'hora', 'plazas_disponibles', 'publicado']

        widgets = {
            'fecha': forms.DateInput(attrs={'type': 'date'}),
        }


class ListaEsperaForm(forms.ModelForm):
    class Meta:
        model = ListaEspera
        fields = []
