X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=mediagoblin%2Fsubmit%2Fforms.py;h=4ff52609130656499b0b8a7ea03608eaee4379d1;hb=97ec97dbc77373819939557ad20c72a0aced5d61;hp=48a21f02cab7a1f82d71f6cceb4630422339476c;hpb=b9e1fa280edfff4daf424bbcf51bd651ed00f411;p=mediagoblin.git diff --git a/mediagoblin/submit/forms.py b/mediagoblin/submit/forms.py index 48a21f02..4ff52609 100644 --- a/mediagoblin/submit/forms.py +++ b/mediagoblin/submit/forms.py @@ -19,6 +19,7 @@ import wtforms from mediagoblin.tools.text import tag_length_validator from mediagoblin.tools.translate import fake_ugettext_passthrough as _ +from mediagoblin.tools.licenses import licenses_as_choices class SubmitStartForm(wtforms.Form): @@ -27,9 +28,15 @@ class SubmitStartForm(wtforms.Form): _('Title'), [wtforms.validators.Length(min=0, max=500)]) description = wtforms.TextAreaField( - _('Description of this work')) + _('Description of this work'), + description=_("""You can use + + Markdown for formatting.""")) tags = wtforms.TextField( _('Tags'), [tag_length_validator], description=_( - "Seperate tags by commas or spaces.")) + "Separate tags by commas.")) + license = wtforms.SelectField( + _('License'), + choices=licenses_as_choices())