annotate gpp/templates/comments/comment_form.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 dbd703f7d63a
children b8474ffe76d9
rev   line source
gremmie@1 1 {% if user.is_authenticated %}
gremmie@1 2 <form action="{% url comments-post %}" method="post" id="comment-form">
gremmie@1 3 {{ form.as_p }}
bgneal@127 4 <a href="#" id="more_smileys">
bgneal@127 5 <img src="{{ MEDIA_URL }}icons/emoticon_smile.png" alt="More smileys" title="More smileys" /></a>
bgneal@127 6 <a href="#" id="markdown_help">
bgneal@127 7 <img src="{{ MEDIA_URL }}icons/help.png" alt="Help" title="Help" /></a>
gremmie@1 8 <input type="submit" name="post" value="Post Comment" id="comment-form-post"/>
gremmie@1 9 </form>
bgneal@127 10 <div id="smileys_dialog" title="More Smileys">
bgneal@127 11 <img src="{{ MEDIA_URL }}icons/ajax_busy.gif" alt="Loading" id="smiley_busy" />
bgneal@127 12 </div>
bgneal@127 13 <div id="markdown_help_dialog" title="Markdown Help">
bgneal@127 14 <img src="{{ MEDIA_URL }}icons/ajax_busy.gif" alt="Loading" id="markdown_busy" />
bgneal@127 15 </div>
gremmie@1 16 {% else %}
gremmie@1 17 <p>
gremmie@1 18 Please <a href="{% url accounts-login %}">login</a> or
gremmie@1 19 <a href="{% url accounts-register %}">register</a> to leave a comment.
gremmie@1 20 </p>
gremmie@1 21 {% endif %}