From 4bae11bb25a8e3c43118891d17fd8e981ecf8dc6 Mon Sep 17 00:00:00 2001 From: luxagraf Date: Fri, 23 May 2014 10:48:20 -0400 Subject: Refactored code to use PEP8/Pyflake coding styles and cleaned up cruft a bit --- design/templates/comments/preview.html | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 design/templates/comments/preview.html (limited to 'design/templates/comments/preview.html') diff --git a/design/templates/comments/preview.html b/design/templates/comments/preview.html new file mode 100644 index 0000000..663b5ca --- /dev/null +++ b/design/templates/comments/preview.html @@ -0,0 +1,30 @@ +{% extends "comments/base.html" %}{% load i18n crispy_forms_tags comments %} + +{% block title %}{% trans "Preview your comment" %}{% endblock %} + +{% block content %} +
{% csrf_token %} + {% if next %}
{% endif %} + + {% if form.errors %} +

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

+ {% else %} +

{% trans "Preview of your comment" %}

+ +
{{ comment|linebreaks }}
+ +
+ +
+ +

{% trans "Or make changes" %}:

+ {% endif %} + + {{ form|crispy }} + +
+ + +
+
+{% endblock %} -- cgit v1.2.3