diff options
author | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2014-05-20 07:44:28 +0200 |
---|---|---|
committer | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2014-05-20 07:44:28 +0200 |
commit | 2207a7db83e85abf1d4cfe88a1c340e1332533f3 (patch) | |
tree | 072fc90337315f34716bdd237347a19412c74cd5 /pyaggr3g470r/forms.py | |
parent | Improved email notifications. (diff) | |
download | newspipe-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.py | 5 |
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")) |