From e9eb2c612156894e87b9fa6584c1f8d05f932fe7 Mon Sep 17 00:00:00 2001 From: luxagraf Date: Tue, 26 Sep 2017 17:49:20 -0600 Subject: updated comments app to work with 1.11 --- .../templates/comments/preview.html | 40 ++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 app/lib/django_comments/templates/comments/preview.html (limited to 'app/lib/django_comments/templates/comments/preview.html') diff --git a/app/lib/django_comments/templates/comments/preview.html b/app/lib/django_comments/templates/comments/preview.html new file mode 100644 index 0000000..e335466 --- /dev/null +++ b/app/lib/django_comments/templates/comments/preview.html @@ -0,0 +1,40 @@ +{% extends "comments/base.html" %} +{% load i18n %} + +{% block title %}{% trans "Preview your comment" %}{% endblock %} + +{% block content %} + {% load comments %} +
{% csrf_token %} + {% if next %} +
{% endif %} + {% if form.errors %} +

{% blocktrans count counter=form.errors|length %}Please correct the error below{% plural %}Please correct the errors below{% endblocktrans %}

+ {% else %} +

{% trans "Preview your comment" %}

+
{{ comment|linebreaks }}
+

+ {% trans "and" %} + {# Translators: This string follows the 'Post your comment' submit button. #} + {% trans "or make changes" %}: +

+ {% endif %} + {% for field in form %} + {% if field.is_hidden %} +
{{ field }}
+ {% else %} + {% if field.errors %}{{ field.errors }}{% endif %} + + {% endif %} + {% endfor %} +

+ + +

+
+{% endblock %} -- cgit v1.2.3