aboutsummaryrefslogtreecommitdiff
path: root/src/web/forms.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/web/forms.py')
-rw-r--r--src/web/forms.py7
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):
bgstack15