Show form errors when posting comments.
[matthijs/projects/xerxes.git] / templates / influences / influence_comment_preview.html
1 {% extends "influences/influence_detail.html" %}
2
3 {% load threadedcommentstags %}
4
5 {% block comments %}
6     {% if comment %}
7         <div class="comment preview{% if not comment.is_public %} private{% endif %}">
8             <span class="commenter">You said:</span>
9                         <div class="comment-body">
10             {% auto_transform_markup comment %}
11                         </div>
12         </div>
13     {% endif %}
14         <div class="commentReplyForm">
15                 <form method="POST" action="">
16                         {{ form.errors }}
17                         {{ form.comment.label_tag }}</br/>
18                         {{ form.comment }}<br/>
19                         {{ form.is_public }}
20                         {{ form.is_public.label_tag }}
21                         <div>
22                         <input type="hidden" name="next" value="{{ next }}" />
23                         <input type="submit" value="Submit Comment" />
24                         <input type="submit" value="Preview Updated Comment" name="preview" />
25                         </div>
26                 </form>
27         </div>
28 {% endblock %}