viveksantayana
93367b6e70
Basic CRUD operations for managing registered admin users Encrypted personal information Still missing sections on managing tests and results Also missing dashboards/index/category landing pages
9 lines
584 B
Python
9 lines
584 B
Python
from flask_wtf import FlaskForm
|
|
from wtforms import StringField, PasswordField, BooleanField
|
|
from wtforms.validators import InputRequired, Email, Length
|
|
|
|
class StartQuiz(FlaskForm):
|
|
given_name = StringField('Given Name', validators=[InputRequired(), Length(max=15)])
|
|
surname = StringField('Surname', validators=[InputRequired(), Length(max=15)])
|
|
email = StringField('Email Address', validators=[InputRequired(), Email(message='You must enter a valid email address.'), Length(max=50)])
|
|
club = StringField('Affiliated Club', validators=[InputRequired(), Length(max=50)]) |