show publish button only when comment is in "pending" workflow state.

svn path=/plone.app.discussion/trunk/; revision=27673
This commit is contained in:
Timo Stollenwerk 2009-06-26 16:03:19 +00:00
parent fb0bae4877
commit e0da88efba

View File

@ -145,7 +145,8 @@
class="background-form"
method="post"
style="display: inline"
tal:attributes="action string:${item/getURL}/@@moderate-publish-comment">
tal:attributes="action string:${item/getURL}/@@moderate-publish-comment"
tal:condition="python:item.review_state == 'pending'">
<input type="hidden" name="comment_id" tal:attributes="value item/getId" />
<input type="hidden" name="workflow_action" tal:attributes="value view/transition" />
<input class="context comment-publish-button"