fix form action links in the moderation view.

svn path=/plone.app.discussion/trunk/; revision=27382
This commit is contained in:
Timo Stollenwerk 2009-06-11 13:44:22 +00:00
parent 473699dea0
commit 29466425bb

View File

@ -91,7 +91,7 @@
class="background-form" class="background-form"
method="post" method="post"
style="display: inline" style="display: inline"
tal:attributes="action string:${item/getURL}/@@review-publish-comment"> tal:attributes="action string:${item/getURL}/@@moderate-publish-comment">
<input type="hidden" name="comment_id" tal:attributes="value item/getId" /> <input type="hidden" name="comment_id" tal:attributes="value item/getId" />
<input type="hidden" name="action" tal:attributes="value view/transition" /> <input type="hidden" name="action" tal:attributes="value view/transition" />
<input class="context comment-publish-button" <input class="context comment-publish-button"
@ -104,7 +104,7 @@
method="post" method="post"
class="background-form" class="background-form"
style="display: inline" style="display: inline"
tal:attributes="action string:${item/getURL}/@@review-delete-comment"> tal:attributes="action string:${item/getURL}/@@moderate-delete-comment">
<input type="hidden" name="comment_id" tal:attributes="value item/getId" /> <input type="hidden" name="comment_id" tal:attributes="value item/getId" />
<input class="destructive comment-delete-button" <input class="destructive comment-delete-button"
type="submit" type="submit"