Source

cmsplugin_comments / cmsplugin_comments / templates / comments / preview.html

{% extends "base.html" %}
{% load i18n %}


{% block content %}
  {% load comments %}
  <form action="{% comment_form_target %}" method="post">
    {% if form.errors %}
	<h3>Пожалуйста, исправьте ошибки ({{form.errors|length}}) указанные ниже:</h3>
    {% else %}
    <p><b>{% trans "Preview your comment" %}</b></p>
      <blockquote>{{ comment|linebreaks }}</blockquote>
      <p>
      {% trans "and" %} <input type="submit" name="submit" class="submit-post" value="{% trans "Post your comment" %}" id="submit" /> {% trans "or make changes" %}:
      </p>
    {% endif %}
    {% for field in form %}
      {% if field.is_hidden %}
        {{ field }}
      {% else %}
        <div
          {% if field.errors %} class="error"{% endif %}
          {% ifequal field.name "honeypot" %} style="display:none;"{% endifequal %}>
          {% if field.errors %}{{ field.errors }}{% endif %}
          {{ field.label_tag }} {{ field }}
        </div>
      {% endif %}
    {% endfor %}
    <p class="submit">
    <input type="submit" name="submit" class="submit-post" value="{% trans "Post" %}" />
    <input type="submit" name="preview" class="submit-preview" value="{% trans "Preview" %}" />
    </p>
  </form>
{% endblock %}