diff options
Diffstat (limited to 'forms.py')
-rw-r--r-- | forms.py | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -1,7 +1,10 @@ from flask_wtf import FlaskForm -from wtforms import StringField, PasswordField, SubmitField +from wtforms import StringField, PasswordField, SubmitField, RadioField from wtforms.validators import DataRequired, Length, EqualTo, Email +class OptionForm(FlaskForm): + option = RadioField('Label', choices=[('mail-old','I want to use an existing email address.'),('mail-new','I want to create and use a new email address.')]) + submit = SubmitField('Save preference') class RegistrationForm(FlaskForm): username = StringField('Username', validators=[DataRequired(), Length(min=1, max=32)]) |