Move the new comment form to the right template.
authorMatthijs Kooijman <matthijs@stdin.nl>
Fri, 31 Oct 2008 13:25:29 +0000 (14:25 +0100)
committerMatthijs Kooijman <matthijs@stdin.nl>
Fri, 31 Oct 2008 13:25:29 +0000 (14:25 +0100)
The "reply to this comment" forms were already in
influence_comments_block, but the "new comment" form was not.

templates/influences/influence_comments_block.html
templates/influences/influence_detail_block.html

index 255482ae2ec5811f41c318b1ae20c85b955163b7..5392d2f2db3938117e11315dc3f2c1353f2762f0 100644 (file)
 {% else %}
     {% trans "No comments were added yet" %}
 {% endif %}
+
+<p style="display:none;" id="replyLink"><a href="javascript:showReply('')">Add comment</a></p>
+<div id="replyForm">
+<script type="text/javascript">hideReply('')</script>
+<h3>{% trans "Add comment" %}</h3>
+<form method="post" action="{% url influences_influence_comment object.id %}">
+       <p><a href="javascript:hideReply('')">Cancel comment</a></p>
+    <table>
+    {{ comment_form.as_table }}
+    </table>
+    <div><input type="submit" value="{% trans "Add comment" %}" /></div>
+    {# <input type="submit" name="preview" value="{% trans "Preview comment" %}" /></li> #}
+</form>
+</div>
index 692d0b09ea9f81bb0b4425f4b6745480a8d3ab3d..0037d092ebd54337df72c55d975ca57b49809318 100644 (file)
                
 <h2>{% trans "Comments" %}</h2>
 {% include "influences/influence_comments_block.html" %}
-
-<p style="display:none;" id="replyLink"><a href="javascript:showReply('')">Add comment</a></p>
-<div id="replyForm">
-<script type="text/javascript">hideReply('')</script>
-<h3>{% trans "Add comment" %}</h3>
-<form method="post" action="{% url influences_influence_comment object.id %}">
-       <p><a href="javascript:hideReply('')">Cancel comment</a></p>
-    <table>
-    {{ comment_form.as_table }}
-    </table>
-    <div><input type="submit" value="{% trans "Add comment" %}" /></div>
-    {# <input type="submit" name="preview" value="{% trans "Preview comment" %}" /></li> #}
-</form>
-</div>