Mercurial > public > sg101
diff gpp/templates/forums/new_post.html @ 127:2d299909e074
Adding markdown help to comments and forums. Still need to add it to a few other places that use the markItUp editor.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Mon, 16 Nov 2009 01:00:28 +0000 |
parents | 3ae999b0c53b |
children | 593fb6dbd449 |
line wrap: on
line diff
--- a/gpp/templates/forums/new_post.html Sat Nov 14 20:30:31 2009 +0000 +++ b/gpp/templates/forums/new_post.html Mon Nov 16 01:00:28 2009 +0000 @@ -1,4 +1,5 @@ {% extends 'base.html' %} +{% load forum_tags %} {% block title %}Forums: New Post{% endblock %} {% block custom_js %}{{ form.media }}{% endblock %} {% block content %} @@ -13,19 +14,7 @@ {% if can_post %} <div class="forum-block"> <a name="forum-reply-form"></a> -<form action="." method="post" id="forums-reply"> -<fieldset> -<legend>New Post</legend> -{{ form.as_p }} -<a href="#" id="more_smileys"> -<img src="{{ MEDIA_URL }}icons/emoticon_smile.png" alt="More smileys" title="More smileys" /></a> -<input type="submit" value="Submit Post" id="forums-new-post" /> -</fieldset> -</form> -</div> -<div id="smileys_dialog" title="More Smileys"> -<img src="{{ MEDIA_URL }}icons/ajax_busy.gif" alt="Loading" id="smiley_busy" /> -</div> +{% show_form "New Post" form "Submit Post" 0 MEDIA_URL %} {% else %} {% if topic.locked %} <p>This topic is locked.</p> @@ -33,4 +22,5 @@ <p>You don't have permission to post to this topic.</p> {% endif %} {% endif %} +</div> {% endblock %}