Comments fully integrated.
[~kgodey/maayanwich.git] / templates / comments / form.html
1 {% load comments i18n %}
2 <form action="{% comment_form_target %}" method="post">
3   {% if next %}<input type="hidden" name="next" value="{% url comment.get_content_object_url() %}" />{% endif %}
4   {% for field in form %}
5     {% if field.is_hidden %}
6       {{ field }}
7     {% else %}
8       {% if field.errors %}{{ field.errors }}{% endif %}
9       <p
10         {% if field.errors %} class="error"{% endif %}
11         {% ifequal field.name "honeypot" %} style="display:none;"{% endifequal %}>
12         {{ field.label_tag }} {{ field }}
13       </p>
14     {% endif %}
15   {% endfor %}
16   <p class="submit">
17     <input type="submit" name="post" class="submit-post" value="{% trans "Post" %}" />
18     <input type="submit" name="preview" class="submit-preview" value="{% trans "Preview" %}" />
19   </p>
20 </form>