PageRenderTime 24ms CodeModel.GetById 17ms app.highlight 2ms RepoModel.GetById 2ms app.codeStats 0ms

/django/contrib/comments/templates/comments/form.html

https://code.google.com/p/mango-py/
HTML | 20 lines | 20 code | 0 blank | 0 comment | 0 complexity | f39353ad25808ee8fe98744eb8543bbc MD5 | raw file
 1{% load comments i18n %}
 2<form action="{% comment_form_target %}" method="post">{% csrf_token %}
 3  {% if next %}<div><input type="hidden" name="next" value="{{ next }}" /></div>{% endif %}
 4  {% for field in form %}
 5    {% if field.is_hidden %}
 6      <div>{{ field }}</div>
 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>