Moved MediaComment form descriptions to apt. place
authorJoar Wandborg <joar@wandborg.se>
Tue, 22 Jan 2013 13:38:53 +0000 (14:38 +0100)
committerJoar Wandborg <joar@wandborg.se>
Tue, 22 Jan 2013 13:38:53 +0000 (14:38 +0100)
mediagoblin/templates/mediagoblin/user_pages/media.html
mediagoblin/user_pages/forms.py

index 29d7874c8bef6d5bfaea16f8d78dca14259cc3e2..7e184257faf96e85d704afd19b61aacf5e2dd51e 100644 (file)
         <form action="{{ request.urlgen('mediagoblin.user_pages.media_post_comment', 
                                          user= media.get_uploader.username,
                                          media_id=media.id) }}" method="POST" id="form_comment">
-          <p>
-            {% trans %}You can use <a href="http://daringfireball.net/projects/markdown/basics">Markdown</a> for formatting.{% endtrans %}
-          </p>
           {{ wtforms_util.render_divs(comment_form) }}
           <div class="form_submit_buttons">
             <input type="submit" value="{% trans %}Add this comment{% endtrans %}" class="button_action" />
index 9e8ccf01e65d93678ad7767bea1cfd81e6354c66..c7398d84e8a0898a44f3845221a7d8cb7dd9d117 100644 (file)
@@ -20,8 +20,11 @@ from mediagoblin.tools.translate import fake_ugettext_passthrough as _
 
 class MediaCommentForm(wtforms.Form):
     comment_content = wtforms.TextAreaField(
-        '',
-        [wtforms.validators.Required()])
+        _('Comment'),
+        [wtforms.validators.Required()],
+        description=_(u'You can use '
+                      u'<a href="http://daringfireball.net/projects/markdown/basics">'
+                      u'Markdown</a> for formatting.'))
 
 class ConfirmDeleteForm(wtforms.Form):
     confirm = wtforms.BooleanField(