from flask_wtf import FlaskForm
from wtforms import StringField
from wtforms.validators import DataRequired,Email
from wtforms.widgets import TextArea


class ContactForm(FlaskForm):
    name=StringField('Name',validators=[DataRequired()])
    email=StringField('E-mail', validators=[DataRequired(), Email()])
    subject=StringField('Subject', validators=[DataRequired()])
    message=StringField('Message', widget=TextArea(), validators=[DataRequired()])