aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/edit/forms.py
diff options
context:
space:
mode:
authorJef van Schendel <mail@jefvanschendel.nl>2012-01-04 17:48:16 +0100
committerJef van Schendel <mail@jefvanschendel.nl>2012-01-04 17:48:16 +0100
commit9c196287ad26f52acb38d6c37560848da23151a6 (patch)
tree780bc61630e476116d469a2d6437df497e497420 /mediagoblin/edit/forms.py
parent8545cfc97d9336b100881bd3ebafd4a5f4882dd3 (diff)
downloadmediagoblin-9c196287ad26f52acb38d6c37560848da23151a6.tar.lz
mediagoblin-9c196287ad26f52acb38d6c37560848da23151a6.tar.xz
mediagoblin-9c196287ad26f52acb38d6c37560848da23151a6.zip
Add Markdown for submit page, edit page, profile edit page; thus fixing ticket #690
Diffstat (limited to 'mediagoblin/edit/forms.py')
-rw-r--r--mediagoblin/edit/forms.py12
1 files changed, 10 insertions, 2 deletions
diff --git a/mediagoblin/edit/forms.py b/mediagoblin/edit/forms.py
index f9cc92bf..406de3f8 100644
--- a/mediagoblin/edit/forms.py
+++ b/mediagoblin/edit/forms.py
@@ -23,7 +23,11 @@ class EditForm(wtforms.Form):
title = wtforms.TextField(
_('Title'),
[wtforms.validators.Length(min=0, max=500)])
- description = wtforms.TextAreaField('Description of this work')
+ description = wtforms.TextAreaField(
+ _('Description of this work'),
+ description=_("""You can use
+ <a href="http://daringfireball.net/projects/markdown/basics">
+ Markdown</a> for formatting."""))
tags = wtforms.TextField(
_('Tags'),
[tag_length_validator],
@@ -40,7 +44,11 @@ class EditForm(wtforms.Form):
class EditProfileForm(wtforms.Form):
bio = wtforms.TextAreaField(
_('Bio'),
- [wtforms.validators.Length(min=0, max=500)])
+ [wtforms.validators.Length(min=0, max=500)],
+ description=_(
+ """You can use
+ <a href="http://daringfireball.net/projects/markdown/basics">
+ Markdown</a> for formatting."""))
url = wtforms.TextField(
_('Website'),
[wtforms.validators.Optional(),