aboutsummaryrefslogtreecommitdiff
path: root/src/web/forms.py
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2017-02-12 16:41:09 +0100
committerCédric Bonhomme <cedric@cedricbonhomme.org>2017-02-12 16:41:09 +0100
commit8bd82176356540b88eece24b96d7eb6a2260d718 (patch)
tree619caf62c174d09448e3da9c873b2df0d26dd5c2 /src/web/forms.py
parentNew https certificate (diff)
downloadnewspipe-8bd82176356540b88eece24b96d7eb6a2260d718.tar.gz
newspipe-8bd82176356540b88eece24b96d7eb6a2260d718.tar.bz2
newspipe-8bd82176356540b88eece24b96d7eb6a2260d718.zip
prototypefor bookmarks
Diffstat (limited to 'src/web/forms.py')
-rw-r--r--src/web/forms.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/web/forms.py b/src/web/forms.py
index 8088f27b..5957ceef 100644
--- a/src/web/forms.py
+++ b/src/web/forms.py
@@ -204,6 +204,16 @@ class CategoryForm(Form):
submit = SubmitField(lazy_gettext("Save"))
+class BookmarkForm(Form):
+ href = TextField(lazy_gettext("URL"))
+ description = TextField(lazy_gettext("Description"))
+ extended = TextField(lazy_gettext("Description long"))
+ tags = TextField(lazy_gettext("Tags"))
+ to_read = BooleanField(lazy_gettext("To read"), default=False)
+ shared = BooleanField(lazy_gettext("Shared"), default=False)
+ submit = SubmitField(lazy_gettext("Save"))
+
+
class InformationMessageForm(Form):
subject = TextField(lazy_gettext("Subject"),
[validators.Required(lazy_gettext("Please enter a subject."))])
bgstack15