from django import forms


class ContactForm( forms.Form ):
    error_css_class = 'form-error'
    required_css_class = 'form-control-required'

    contact = forms.CharField( required=True, max_length=255, label='Full Name', widget=forms.TextInput(attrs={
        'placeholder': 'John Doe',
        'class': 'form-control',
        'required': 'required'
    }))

    email = forms.EmailField( required=True, label='Email Address', widget=forms.EmailInput(attrs={
        'placeholder': 'email@domain.com',
        'class': 'form-control',
        'required': 'required'
    }))

    message = forms.CharField( required=True, label="Message", widget=forms.Textarea(attrs={
        'placeholder': 'Hi, how are you?',
        'class': 'form-control',
        'required': 'required'
    }))