[CMF-checkins] CVS: CMF/CMFDefault/skins/zpt_content - transition_form.pt:1.1.2.1

Yvo Schubbe schubbe@web.de
Fri, 28 Feb 2003 11:24:33 -0500


Update of /cvs-repository/CMF/CMFDefault/skins/zpt_content
In directory cvs.zope.org:/tmp/cvs-serv30885/CMFDefault/skins/zpt_content

Added Files:
      Tag: yuppie-collector122-branch
	transition_form.pt 
Log Message:
- added transition_form template
- added i18n attributes

=== Added File CMF/CMFDefault/skins/zpt_content/transition_form.pt ===
<metal:block metal:define-macro="master">
<html xmlns:tal="http://xml.zope.org/namespaces/tal"
      xmlns:metal="http://xml.zope.org/namespaces/metal"
      metal:use-macro="here/main_template/macros/master">
<body>
<div metal:fill-slot="main">
<div class="Desktop"
     tal:define="wtool here/portal_workflow;
                 review_state python: wtool.getInfoFor(here, 'review_state');
                 review_history python: wtool.getInfoFor(here, 'review_history')">

<div metal:define-slot="main" i18n:domain="cmf_default">
<h1 i18n:translate="">Transition of <span tal:replace="here/getId"
                             i18n:name="objectid">Item</span>.</h1>

<p i18n:translate="">Transition description.</p>
</div>

<form method="post" action="content_status_modify"
      tal:attributes="action string:${here/absolute_url}/content_status_modify">
 <table class="FormLayout">
  <tr i18n:domain="cmf_default">
   <td valign="top" align="left">
    <strong i18n:translate="">Status</strong>
   </td>
   <td valign="top" align="left">
    <span i18n:translate="">This item is currently in
    <span i18n:name="status"><b tal:content="review_state"
                                i18n:translate="">Private</b></span> status.
    </span>
   </td>
  </tr>
  <tr i18n:domain="cmf_default">
   <td valign="top" align="left" colspan="2">
    <strong><em i18n:translate="">Comments</em></strong>
    <br />
    <textarea name="comment" cols="60" rows="5" wrap="soft"
              style="width: 100%"></textarea>
   </td>
  </tr>
  <tr>
   <td colspan="2">
    <div metal:define-slot="form" i18n:domain="cmf_default">
     <input type="hidden" name="workflow_action" value="transition" />
     <input type="submit" value="Transition"
           i18n:attributes="value" />
    </div>
   </td>
  </tr>
 </table>
</form>

<div tal:condition="review_history|nothing" i18n:domain="cmf_default">
 <p><strong i18n:translate="">Reviewing history</strong>
 <br />
 <span tal:repeat="items python: here.reverseList(review_history)">
  <span tal:replace="python: items['time'].aCommon()"></span>
  <span tal:omit-tag="" tal:content="items/action" i18n:translate=""></span>
  <span tal:condition="items/effective_date|nothing" i18n:translate="">
   (effective: <span tal:replace="python: items['effective_date'].aCommon()"
                     i18n:name="eff_date"></span>)</span>
  <span tal:omit-tag="" i18n:translate="">by
   <span tal:replace="items/actor" i18n:name="actor">Actor</span></span>
  <br />
   <span tal:define="rhComments items/comments"
         tal:replace="rhComments">Comments</span>
 </span>
</div>


</div>
</div>
</body>
</html>
</metal:block>