diff options
author | François Schmidts <francois.schmidts@gmail.com> | 2015-10-12 17:48:41 +0200 |
---|---|---|
committer | François Schmidts <francois.schmidts@gmail.com> | 2016-01-26 23:46:31 +0100 |
commit | 7cbbcb59f4c434fbd7e74e85c90e98fadd189b65 (patch) | |
tree | f979fd6300b8767c8bbca0a7ac5c3ee831df49df /src/web/forms.py | |
parent | updating translations (diff) | |
download | newspipe-7cbbcb59f4c434fbd7e74e85c90e98fadd189b65.tar.gz newspipe-7cbbcb59f4c434fbd7e74e85c90e98fadd189b65.tar.bz2 newspipe-7cbbcb59f4c434fbd7e74e85c90e98fadd189b65.zip |
adding, improving UI to manage categories
Diffstat (limited to 'src/web/forms.py')
-rw-r--r-- | src/web/forms.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/web/forms.py b/src/web/forms.py index f57b31d0..9dbf1b5f 100644 --- a/src/web/forms.py +++ b/src/web/forms.py @@ -38,6 +38,7 @@ from flask_wtf import RecaptchaField from web import utils from web.models import User + class SignupForm(Form): """ Sign up form (registration to jarr). @@ -63,6 +64,7 @@ class SignupForm(Form): validated = False return validated + class RedirectForm(Form): """ Secure back redirects with WTForms. @@ -80,6 +82,7 @@ class RedirectForm(Form): target = utils.get_redirect_target() return redirect(target or url_for(endpoint, **values)) + class SigninForm(RedirectForm): """ Sign in form (connection to jarr). @@ -179,9 +182,9 @@ class AddFeedForm(Form): for cat in categories] -class AddCategoryForm(Form): +class CategoryForm(Form): name = TextField(lazy_gettext("Name")) - submit = SubmitField(lazy_gettext("Sign up")) + submit = SubmitField(lazy_gettext("Submit")) class InformationMessageForm(Form): |