Move the new comment form to the right template.
[matthijs/projects/xerxes.git] / templates / influences / influence_comments_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>