comparison 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
comparison
equal deleted inserted replaced
126:b0d62247c3e4 127:2d299909e074
1 {% extends 'base.html' %} 1 {% extends 'base.html' %}
2 {% load forum_tags %}
2 {% block title %}Forums: New Post{% endblock %} 3 {% block title %}Forums: New Post{% endblock %}
3 {% block custom_js %}{{ form.media }}{% endblock %} 4 {% block custom_js %}{{ form.media }}{% endblock %}
4 {% block content %} 5 {% block content %}
5 <h2>Forums: New Post</h2> 6 <h2>Forums: New Post</h2>
6 7
11 </h3> 12 </h3>
12 13
13 {% if can_post %} 14 {% if can_post %}
14 <div class="forum-block"> 15 <div class="forum-block">
15 <a name="forum-reply-form"></a> 16 <a name="forum-reply-form"></a>
16 <form action="." method="post" id="forums-reply"> 17 {% show_form "New Post" form "Submit Post" 0 MEDIA_URL %}
17 <fieldset>
18 <legend>New Post</legend>
19 {{ form.as_p }}
20 <a href="#" id="more_smileys">
21 <img src="{{ MEDIA_URL }}icons/emoticon_smile.png" alt="More smileys" title="More smileys" /></a>
22 <input type="submit" value="Submit Post" id="forums-new-post" />
23 </fieldset>
24 </form>
25 </div>
26 <div id="smileys_dialog" title="More Smileys">
27 <img src="{{ MEDIA_URL }}icons/ajax_busy.gif" alt="Loading" id="smiley_busy" />
28 </div>
29 {% else %} 18 {% else %}
30 {% if topic.locked %} 19 {% if topic.locked %}
31 <p>This topic is locked.</p> 20 <p>This topic is locked.</p>
32 {% else %} 21 {% else %}
33 <p>You don't have permission to post to this topic.</p> 22 <p>You don't have permission to post to this topic.</p>
34 {% endif %} 23 {% endif %}
35 {% endif %} 24 {% endif %}
25 </div>
36 {% endblock %} 26 {% endblock %}