summaryrefslogtreecommitdiffstats
path: root/forms.py
diff options
context:
space:
mode:
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)])