Debian Codegraph @

django_comments/templates/comments/preview.html

raw symbols SCIP
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 %}
10 <div><input type="hidden" name="next" value="{{ next }}"/></div>{% endif %}
11 {% if form.errors %}
12 <h1>{% blocktrans count counter=form.errors|length %}Please correct the error below{% plural %}Please correct the errors below{% endblocktrans %}</h1>
13 {% else %}
14 <h1>{% trans "Preview your comment" %}</h1>
15 <blockquote>{{ comment|linebreaks }}</blockquote>
16 <p>
17 {% trans "and" %} <input id="submit" type="submit" name="submit" class="submit-post"
18 value="{% trans "Post your comment" %}"/>
19 {# Translators: This string follows the 'Post your comment' submit button. #}
20 {% trans "or make changes" %}:
21 </p>
22 {% endif %}
23 {% for field in form %}
24 {% if field.is_hidden %}
25 <div>{{ field }}</div>
26 {% else %}
27 {% if field.errors %}{{ field.errors }}{% endif %}
28 <p
29 {% if field.errors %} class="error"{% endif %}
30 {% if field.name == "honeypot" %} style="display:none;"{% endif %}>
31 {{ field.label_tag }} {{ field }}
32 </p>
33 {% endif %}
34 {% endfor %}
35 <p class="submit">
36 <input type="submit" name="submit" class="submit-post" value="{% trans "Post" %}"/>
37 <input type="submit" name="preview" class="submit-preview" value="{% trans "Preview" %}"/>
38 </p>
39 </form>
40 {% endblock %}