Make the preview consistent with normal comments.
authorMatthijs Kooijman <matthijs@stdin.nl>
Tue, 4 Nov 2008 11:01:29 +0000 (12:01 +0100)
committerMatthijs Kooijman <matthijs@stdin.nl>
Tue, 4 Nov 2008 11:01:29 +0000 (12:01 +0100)
This changes the HTML such that it looks more similar and so that the
same CSS will apply.

templates/influences/influence_comment_preview.html

index f0f04bac55ad91b90f24ad2635e3521d90a36195..059563ca53d192f8e5dd4a00e3b7c9a2b4843739 100644 (file)
@@ -5,16 +5,23 @@
 {% block comments %}
     {% if comment %}
         <div class="comment preview{% if not comment.is_public %} private{% endif %}">
-            You said:<br/>
+            <span class="commenter">You said:</span>
+                       <div class="comment-body">
             {% auto_transform_markup comment %}
+                       </div>
         </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>
+       <div class="commentReplyForm">
+               <form method="POST" action="">
+                       {{ form.comment.label_tag }}</br/>
+                       {{ form.comment }}<br/>
+                       {{ form.is_public }}
+                       {{ form.is_public.label_tag }}
+                       <div>
+                       <input type="hidden" name="next" value="{{ next }}" />
+                       <input type="submit" value="Submit Comment" />
+                       <input type="submit" value="Preview Updated Comment" name="preview" />
+                       </div>
+               </form>
+       </div>
 {% endblock %}