[CMF-checkins] CVS: CMF/CMFCore/dtml - zmi_workflows.dtml:1.1.2.1
Florent Guillaume
fg@nuxeo.com
Wed, 24 Jul 2002 11:16:13 -0400
Update of /cvs-repository/CMF/CMFCore/dtml
In directory cvs.zope.org:/tmp/cvs-serv5029/CMFCore/dtml
Added Files:
Tag: CMF-1_3-branch
zmi_workflows.dtml
Log Message:
Merged changes from HEAD:
Added a ZMI 'Workflows' tab to content objects that displays the portal
type and the workflows states.
=== Added File CMF/CMFCore/dtml/zmi_workflows.dtml ===
<dtml-var manage_page_header>
<dtml-var manage_tabs>
<h2>Workflows</h2>
<p class="form-help">This object's portal type is:
<dtml-let portal_type=getPortalTypeName>
<a href="&dtml-portal_url;/portal_types/&dtml-portal_type;/manage_workspace">&dtml-portal_type;</a>.
</dtml-let>
</p>
<dtml-if chain>
<p class="form-help">This object belongs to the following workflows:</p>
<table cellspacing="2" cellpadding="2" border="0">
<tr>
<td class="form-label" align="left">Workflow</td>
<td class="form-label" align="left">State</td>
</tr>
<dtml-in chain>
<dtml-let wfid=sequence-item>
<tr>
<td class="form-element"><a href="&dtml-portal_url;/portal_workflow/&dtml-wfid;/manage_workspace">&dtml-wfid;</a></td>
<td class="form-element"><dtml-var "states[wfid]" html_quote></td>
</tr>
</dtml-let>
</dtml-in>
</table>
<dtml-else>
<p class="form-help">This object doesn't belong to any workflow.</p>
</dtml-if>
<dtml-var manage_page_footer>