annotate gpp/templates/comments/comment_form.html @ 131:5b69d6e01fd4
Creating a common way to display the smiley and markdown help dialogs for a markItUp textarea input form. Converted gcalendar over to it as a trial.
author |
Brian Neal <bgneal@gmail.com> |
date |
Thu, 26 Nov 2009 22:47:17 +0000 |
parents |
2d299909e074 |
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 %}
|