summaryrefslogtreecommitdiff
path: root/project/templates/comments/form.html
blob: c889a87e9eac1fe5816af4998812d89a631534d4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
{% 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>