11 lines
397 B
Python
11 lines
397 B
Python
from flask_wtf import FlaskForm
|
|
from wtforms import StringField, SubmitField, TextAreaField
|
|
from wtforms.validators import DataRequired, Email
|
|
|
|
|
|
class ContactForm(FlaskForm):
|
|
name = StringField("Name: ", validators=[DataRequired()])
|
|
email = StringField("Email: ", validators=[Email()])
|
|
message = TextAreaField("Message", validators=[DataRequired()])
|
|
submit = SubmitField("Submit")
|