summaryrefslogtreecommitdiffstats
path: root/templates/comments/preview.html
diff options
context:
space:
mode:
Diffstat (limited to 'templates/comments/preview.html')
-rw-r--r--templates/comments/preview.html34
1 files changed, 34 insertions, 0 deletions
diff --git a/templates/comments/preview.html b/templates/comments/preview.html
new file mode 100644
index 0000000..50ed6d6
--- /dev/null
+++ b/templates/comments/preview.html
@@ -0,0 +1,34 @@
+{% extends "comments/base.html" %}
+
+{% block title %}Preview your comment{% endblock %}
+
+{% block content %}
+ {% load comments %}
+ <form action="{% comment_form_target %}" method="POST">
+ {% if form.errors %}
+ <h1>Please correct the error{{ form.errors|pluralize }} below</h1>
+ {% else %}
+ <h1>Preview your comment</h1>
+ <blockquote>{{ comment|escape|linebreaks }}</blockquote>
+ <p>
+ and <input type="submit" name="submit" value="Post your comment" id="submit"> or make changes:
+ </p>
+ {% endif %}
+ {% for field in form %}
+ {% if field.is_hidden %}
+ {{ field }}
+ {% else %}
+ <p
+ {% if field.errors %} class="error"{% endif %}
+ {% ifequal field.name "honeypot" %} style="display:none;"{% endifequal %}>
+ {% if field.errors %}{{ field.errors }}{% endif %}
+ {{ field.label_tag }} {{ field }}
+ </p>
+ {% endif %}
+ {% endfor %}
+ <p class="submit">
+ <input type="submit" name="submit" class="submit-post" value="Post">
+ <input type="submit" name="submit" class="submit-preview" value="Preview">
+ </p>
+ </form>
+{% endblock %} \ No newline at end of file