Add influence_comment_preview template.
authorMatthijs Kooijman <matthijs@stdin.nl>
Fri, 31 Oct 2008 16:47:12 +0000 (17:47 +0100)
committerMatthijs Kooijman <matthijs@stdin.nl>
Fri, 31 Oct 2008 16:47:12 +0000 (17:47 +0100)
templates/influences/influence_comment_preview.html [new file with mode: 0644]

diff --git a/templates/influences/influence_comment_preview.html b/templates/influences/influence_comment_preview.html
new file mode 100644 (file)
index 0000000..53ef495
--- /dev/null
@@ -0,0 +1,20 @@
+{% extends base %}
+
+{% load threadedcommentstags %}
+
+{% block comments %}
+    {% if comment %}
+        <div class="comment preview{% if not comment.is_public %} private{% endif %}">
+            You said:<br/>
+            {% auto_transform_markup comment %}
+        </div>
+    {% endif %}
+    <form method="POST" action="">
+        <table>
+            {{ form.as_table }}
+        </table>
+            <div><input type="submit" value="Submit Comment" />
+            <input type="submit" value="Preview Updated Comment" name="preview" /></div>
+        <input type="hidden" name="next" value="{{ next }}" />
+    </form>
+{% endblock %}