diff options
author | Cédric Bonhomme <kimble.mandel@gmail.com> | 2013-11-10 13:16:41 +0100 |
---|---|---|
committer | Cédric Bonhomme <kimble.mandel@gmail.com> | 2013-11-10 13:16:41 +0100 |
commit | 4a55cb9895bbc4531c590d715b559cd510527f05 (patch) | |
tree | 5ee30546839042eee244a7eddd9dbe98e8cf030f /pyaggr3g470r/forms.py | |
parent | Updated README. (diff) | |
download | newspipe-4a55cb9895bbc4531c590d715b559cd510527f05.tar.gz newspipe-4a55cb9895bbc4531c590d715b559cd510527f05.tar.bz2 newspipe-4a55cb9895bbc4531c590d715b559cd510527f05.zip |
Enable or disable email notification.
Diffstat (limited to 'pyaggr3g470r/forms.py')
-rw-r--r-- | pyaggr3g470r/forms.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/pyaggr3g470r/forms.py b/pyaggr3g470r/forms.py index e13dde96..deebea3a 100644 --- a/pyaggr3g470r/forms.py +++ b/pyaggr3g470r/forms.py @@ -27,7 +27,7 @@ __copyright__ = "Copyright (c) Cedric Bonhomme" __license__ = "GPLv3" from flask.ext.wtf import Form -from wtforms import TextField, TextAreaField, PasswordField, SubmitField, validators +from wtforms import TextField, TextAreaField, PasswordField, BooleanField, SubmitField, validators import models @@ -52,8 +52,9 @@ class SigninForm(Form): class AddFeedForm(Form): title = TextField("Title", [validators.Required("Please enter a title.")]) - link = TextField("Feed link", [validators.Required("Please enter a link.")]) + link = TextField("Feed link", [validators.Required("Please enter a link for the feed.")]) site_link = TextField("Site link", [validators.Required("Please enter a site URL.")]) + email_notification = BooleanField("Email notification", default=False) submit = SubmitField("Save") def __init__(self, *args, **kwargs): |