diff options
author | Georg | 2021-09-02 01:47:37 +0200 |
---|---|---|
committer | Georg | 2021-09-02 01:47:37 +0200 |
commit | d5f5ac7bd254ac591b4bbeb606565ac22e2ce35c (patch) | |
tree | 3796dcd10f25f5cd35cb138279c888680925f0ba /forms.py | |
parent | 840265c745e668addfcd4afa741f7835cd98dca9 (diff) | |
download | webreg-d5f5ac7bd254ac591b4bbeb606565ac22e2ce35c.tar.gz webreg-d5f5ac7bd254ac591b4bbeb606565ac22e2ce35c.tar.bz2 webreg-d5f5ac7bd254ac591b4bbeb606565ac22e2ce35c.zip |
Savepointdevel_multireg
Signed-off-by: Georg <georg@lysergic.dev>
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)]) |