PushingScores/forms.py
2019-04-04 12:48:53 +02:00

13 lines
662 B
Python

from flask_wtf import Form
from wtforms import TextField, IntegerField, TextAreaField, SubmitField, RadioField, SelectField, StringField
from wtforms import validators, ValidationError
class ReusableForm(Form):
name = TextField('Name:', [validators.Required('Please enter your name.')])
email = TextField('Email:',[validators.Required('Please enter your email address.'), validators.Email('Please enter your email address.')])
friend = RadioField('Are you a friend of De Player?', choices = [('Y','Yes'),('NY','Not Yet')])
content = StringField('Description:',[validators.Required('Please enter a description.')])
submit = SubmitField('Send')