~chipaca/unity-lens-video/custom-user-agent

« back to all changes in this revision

Viewing changes to templates/comments/form.html

  • Committer: Janos Gyerik
  • Date: 2012-04-03 20:38:05 UTC
  • Revision ID: janos@axiom-20120403203805-d2e6j78xee1dhttx
renamed "main" module to "oneliners"

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
{% load comments i18n %}
 
2
<form action="{% comment_form_target %}" method="post">{% csrf_token %}
 
3
  {% if next %}<input type="hidden" name="next" value="{{ next }}" />{% 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>