from django import forms
from django.forms import ModelForm, CharField, SlugField
from django.core.validators import validate_unicode_slug

from .models import Event

class EventForm(ModelForm):
    class Meta:
        model=Event
        exclude=['slug']
        labels={
            'Name': '<i class="server icon"></i>Name',
            'description': '<i class="dungeon icon"></i>Description',
            'location': '<i class="lock icon"></i>Location',
            # 'doors_open':
            # 'doors_close':
            # 'price':
            # 'wardrobe':
            # 'wardrobe_guarded':
            # 'dresscode':
        }
        widgets={
            'description': forms.Textarea(),
            #'doors_open': forms.DateTimeInput()
        }
