aboutsummaryrefslogtreecommitdiffstats
path: root/bn_django/templates/comments/form.html
blob: 67068e8ebf1593b31f888c83d935e1b7ff8b8ed0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{% load comments i18n %}
<form action="{% comment_form_target %}" method="post">
<table>
  {% for field in form %}
    {% if field.is_hidden %} {{ field }} {% else %}
    {% ifequal field.name "honeypot" %}
    <span style="display:none;">{{ field.label_tag }}{{ field }}</span> 
    {% else %}
        
<tr><td class="comment_field_name">
      <span {% if field.errors %} class="error"{% endif %}>
        {% if field.errors %}{{ field.errors }}{% endif %}
        {{ field.label_tag }}</span></td><td>{{ field }}
</td></tr>
    {% endifequal %}
    {% endif %}
  {% endfor %}
<tr><td class="comment_field_name"></td><td>
    <input type="submit" name="preview" class="submit-preview" value="{% trans "Preview" %}" />
    <input type="submit" name="post" class="submit-post" value="{% trans "Post" %}" />
</td></tr>
</table>
</form>