aboutsummaryrefslogtreecommitdiff
path: root/pyaggr3g470r/forms.py
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2014-05-20 07:44:28 +0200
committerCédric Bonhomme <cedric@cedricbonhomme.org>2014-05-20 07:44:28 +0200
commit2207a7db83e85abf1d4cfe88a1c340e1332533f3 (patch)
tree072fc90337315f34716bdd237347a19412c74cd5 /pyaggr3g470r/forms.py
parentImproved email notifications. (diff)
downloadnewspipe-2207a7db83e85abf1d4cfe88a1c340e1332533f3.tar.gz
newspipe-2207a7db83e85abf1d4cfe88a1c340e1332533f3.tar.bz2
newspipe-2207a7db83e85abf1d4cfe88a1c340e1332533f3.zip
Send notification messages to platform users.
Diffstat (limited to 'pyaggr3g470r/forms.py')
-rw-r--r--pyaggr3g470r/forms.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/pyaggr3g470r/forms.py b/pyaggr3g470r/forms.py
index d241b90a..57076428 100644
--- a/pyaggr3g470r/forms.py
+++ b/pyaggr3g470r/forms.py
@@ -111,3 +111,8 @@ class ProfileForm(Form):
self.nickname.errors.append(lazy_gettext('This nickname has invalid characters. Please use letters, numbers, dots and underscores only.'))
return False
return True
+
+class InformationMessageForm(Form):
+ subject = TextField(lazy_gettext("Subject"), [validators.Required(lazy_gettext("Please enter a subject."))])
+ message = TextAreaField(lazy_gettext("Message"), [validators.Required(lazy_gettext("Please enter a content."))])
+ submit = SubmitField(lazy_gettext("Send"))
bgstack15