project/templates/comments/form.html
author Puneeth Chaganti <punchagan@fossee.in>
Fri, 19 Nov 2010 16:19:45 +0530 (2010-11-19)
changeset 286 1c7794b1b55a
parent 1 fda1c66b25f9
permissions -rw-r--r--
Added talk tags for special and invited talks.
{% load comments %}
<h3>Comments</h3>
<form action="{% comment_form_target %}" method="POST">
  {% for field in form %}
    {% if field.is_hidden %}
      {{ field }}
    {% else %}
      <p
        {% if field.errors %} class="error"{% endif %}
        {% ifequal field.name "honeypot" %} style="display:none;"{% endifequal %}>
        {% if field.errors %}{{ field.errors }}{% endif %}
        {{ field.label_tag }} {{ field }}
      </p>
    {% endif %}
  {% endfor %}
  <p class="submit">
    <input type="submit" name="submit" class="submit-post" value="Post" />
    <input type="submit" name="submit" class="submit-preview" value="Preview" />
  </p>
</form>