No Description

forms.py 538B

12345678910111213
  1. from flask_wtf import FlaskForm
  2. from wtforms import StringField, PasswordField, BooleanField, SubmitField
  3. from wtforms.validators import DataRequired
  4. class TurnForm(FlaskForm):
  5. cName = StringField('Name', validators=[DataRequired()])
  6. cEmail = StringField('Email', validators=[DataRequired()])
  7. submit = SubmitField('Get turn')
  8. class StationForm(FlaskForm):
  9. eName = StringField('Name', validators=[DataRequired()])
  10. office = StringField('Office', validators=[DataRequired()])
  11. submit = SubmitField('Insert Station')