PageRenderTime 40ms CodeModel.GetById 38ms app.highlight 0ms RepoModel.GetById 2ms app.codeStats 0ms

/django/contrib/comments/templates/comments/preview.html

https://code.google.com/p/mango-py/
HTML | 36 lines | 34 code | 2 blank | 0 comment | 0 complexity | 227e5592a767dcf639f762d9c03b027e MD5 | raw file
 1{% extends "comments/base.html" %}
 2{% load i18n %}
 3
 4{% block title %}{% trans "Preview your comment" %}{% endblock %}
 5
 6{% block content %}
 7  {% load comments %}
 8  <form action="{% comment_form_target %}" method="post">{% csrf_token %}
 9    {% if next %}<div><input type="hidden" name="next" value="{{ next }}" /></div>{% endif %}
10    {% if form.errors %}
11    <h1>{% blocktrans count form.errors|length as counter %}Please correct the error below{% plural %}Please correct the errors below{% endblocktrans %}</h1>
12    {% else %}
13    <h1>{% trans "Preview your comment" %}</h1>
14      <blockquote>{{ comment|linebreaks }}</blockquote>
15      <p>
16      {% trans "and" %} <input type="submit" name="submit" class="submit-post" value="{% trans "Post your comment" %}" id="submit" /> {% trans "or make changes" %}:
17      </p>
18    {% endif %}
19    {% for field in form %}
20      {% if field.is_hidden %}
21        <div>{{ field }}</div>
22      {% else %}
23        {% if field.errors %}{{ field.errors }}{% endif %}
24        <p
25          {% if field.errors %} class="error"{% endif %}
26          {% ifequal field.name "honeypot" %} style="display:none;"{% endifequal %}>
27          {{ field.label_tag }} {{ field }}
28        </p>
29      {% endif %}
30    {% endfor %}
31    <p class="submit">
32    <input type="submit" name="submit" class="submit-post" value="{% trans "Post" %}" />
33    <input type="submit" name="preview" class="submit-preview" value="{% trans "Preview" %}" />
34    </p>
35  </form>
36{% endblock %}