Mercurial > public > sg101
comparison gpp/templates/comments/comment_form.html @ 134:b8474ffe76d9
Cutting comments over to the new common way of using markItUp and getting the extra smiley and markdown help dialogs.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Fri, 27 Nov 2009 00:39:50 +0000 |
parents | 2d299909e074 |
children | 6a5549c2efb5 |
comparison
equal
deleted
inserted
replaced
133:c515b7401078 | 134:b8474ffe76d9 |
---|---|
1 {% load core_tags %} | |
1 {% if user.is_authenticated %} | 2 {% if user.is_authenticated %} |
2 <form action="{% url comments-post %}" method="post" id="comment-form"> | 3 <form action="{% url comments-post %}" method="post" id="comment-form"> |
3 {{ form.as_p }} | 4 {{ form.as_p }} |
4 <a href="#" id="more_smileys"> | 5 {% comment_dialogs %} |
5 <img src="{{ MEDIA_URL }}icons/emoticon_smile.png" alt="More smileys" title="More smileys" /></a> | |
6 <a href="#" id="markdown_help"> | |
7 <img src="{{ MEDIA_URL }}icons/help.png" alt="Help" title="Help" /></a> | |
8 <input type="submit" name="post" value="Post Comment" id="comment-form-post"/> | 6 <input type="submit" name="post" value="Post Comment" id="comment-form-post"/> |
9 </form> | 7 </form> |
10 <div id="smileys_dialog" title="More Smileys"> | |
11 <img src="{{ MEDIA_URL }}icons/ajax_busy.gif" alt="Loading" id="smiley_busy" /> | |
12 </div> | |
13 <div id="markdown_help_dialog" title="Markdown Help"> | |
14 <img src="{{ MEDIA_URL }}icons/ajax_busy.gif" alt="Loading" id="markdown_busy" /> | |
15 </div> | |
16 {% else %} | 8 {% else %} |
17 <p> | 9 <p> |
18 Please <a href="{% url accounts-login %}">login</a> or | 10 Please <a href="{% url accounts-login %}">login</a> or |
19 <a href="{% url accounts-register %}">register</a> to leave a comment. | 11 <a href="{% url accounts-register %}">register</a> to leave a comment. |
20 </p> | 12 </p> |