annotate gpp/templates/forums/new_post.html @ 123:3ae999b0c53b

Forums: added a jquery ui dialog of extra smileys.
author Brian Neal <bgneal@gmail.com>
date Sun, 08 Nov 2009 21:15:31 +0000
parents 80ab249d1adc
children 2d299909e074
rev   line source
bgneal@108 1 {% extends 'base.html' %}
bgneal@108 2 {% block title %}Forums: New Post{% endblock %}
bgneal@108 3 {% block custom_js %}{{ form.media }}{% endblock %}
bgneal@108 4 {% block content %}
bgneal@108 5 <h2>Forums: New Post</h2>
bgneal@108 6
bgneal@108 7 <h3>
bgneal@108 8 <a href="{% url forums-index %}">SurfGuitar101 Forum Index</a> &raquo;
bgneal@108 9 <a href="{% url forums-forum_index slug=forum.slug %}">{{ forum.name }}</a> &raquo;
bgneal@108 10 <a href="{% url forums-topic_index id=topic.id %}">{{ topic.name }}</a>
bgneal@108 11 </h3>
bgneal@108 12
bgneal@108 13 {% if can_post %}
bgneal@108 14 <div class="forum-block">
bgneal@108 15 <a name="forum-reply-form"></a>
bgneal@108 16 <form action="." method="post" id="forums-reply">
bgneal@108 17 <fieldset>
bgneal@108 18 <legend>New Post</legend>
bgneal@108 19 {{ form.as_p }}
bgneal@123 20 <a href="#" id="more_smileys">
bgneal@123 21 <img src="{{ MEDIA_URL }}icons/emoticon_smile.png" alt="More smileys" title="More smileys" /></a>
bgneal@108 22 <input type="submit" value="Submit Post" id="forums-new-post" />
bgneal@108 23 </fieldset>
bgneal@108 24 </form>
bgneal@108 25 </div>
bgneal@123 26 <div id="smileys_dialog" title="More Smileys">
bgneal@123 27 <img src="{{ MEDIA_URL }}icons/ajax_busy.gif" alt="Loading" id="smiley_busy" />
bgneal@123 28 </div>
bgneal@108 29 {% else %}
bgneal@108 30 {% if topic.locked %}
bgneal@108 31 <p>This topic is locked.</p>
bgneal@108 32 {% else %}
bgneal@108 33 <p>You don't have permission to post to this topic.</p>
bgneal@108 34 {% endif %}
bgneal@108 35 {% endif %}
bgneal@108 36 {% endblock %}