summaryrefslogtreecommitdiffstats
path: root/forms.py
diff options
context:
space:
mode:
authorGeorg2021-09-02 01:47:37 +0200
committerGeorg2021-09-02 01:47:37 +0200
commitd5f5ac7bd254ac591b4bbeb606565ac22e2ce35c (patch)
tree3796dcd10f25f5cd35cb138279c888680925f0ba /forms.py
parent840265c745e668addfcd4afa741f7835cd98dca9 (diff)
downloadwebreg-devel_multireg.tar.gz
webreg-devel_multireg.tar.bz2
webreg-devel_multireg.zip
Signed-off-by: Georg <georg@lysergic.dev>
Diffstat (limited to 'forms.py')
-rw-r--r--forms.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/forms.py b/forms.py
index 6e55f64..5a86e6e 100644
--- a/forms.py
+++ b/forms.py
@@ -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)])