aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/submit/forms.py
diff options
context:
space:
mode:
Diffstat (limited to 'mediagoblin/submit/forms.py')
-rw-r--r--mediagoblin/submit/forms.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/mediagoblin/submit/forms.py b/mediagoblin/submit/forms.py
index 7d9e8fcf..bd1e904f 100644
--- a/mediagoblin/submit/forms.py
+++ b/mediagoblin/submit/forms.py
@@ -41,3 +41,13 @@ class SubmitStartForm(wtforms.Form):
_('License'),
[wtforms.validators.Optional(),],
choices=licenses_as_choices())
+
+class AddCollectionForm(wtforms.Form):
+ title = wtforms.TextField(
+ _('Title'),
+ [wtforms.validators.Length(min=0, max=500), wtforms.validators.Required()])
+ description = wtforms.TextAreaField(
+ _('Description of this collection'),
+ description=_("""You can use
+ <a href="http://daringfireball.net/projects/markdown/basics">
+ Markdown</a> for formatting."""))