~canonical-django/canonical-django/project-template

« back to all changes in this revision

Viewing changes to trunk/python-packages/django/contrib/comments/templates/comments/form.html

  • Committer: Matthew Nuzum
  • Date: 2008-11-13 05:46:03 UTC
  • Revision ID: matthew.nuzum@canonical.com-20081113054603-v0kvr6z6xyexvqt3
adding to version control

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
{% load comments %}
 
2
<form action="{% comment_form_target %}" method="POST">
 
3
  {% for field in form %}
 
4
    {% if field.is_hidden %}
 
5
      {{ field }}
 
6
    {% else %}
 
7
      <p
 
8
        {% if field.errors %} class="error"{% endif %}
 
9
        {% ifequal field.name "honeypot" %} style="display:none;"{% endifequal %}>
 
10
        {% if field.errors %}{{ field.errors }}{% endif %}
 
11
        {{ field.label_tag }} {{ field }}
 
12
      </p>
 
13
    {% endif %}
 
14
  {% endfor %}
 
15
  <p class="submit">
 
16
    <input type="submit" name="submit" class="submit-post" value="Post" />
 
17
    <input type="submit" name="submit" class="submit-preview" value="Preview" />
 
18
  </p>
 
19
</form>