[Zope3-checkins] CVS: Zope3/src/zope/app/browser/workflow/stateful - contentworkflow_registry.pt:1.1

Stephan Richter srichter@cosmos.phy.tufts.edu
Tue, 29 Jul 2003 21:51:09 -0400


Update of /cvs-repository/Zope3/src/zope/app/browser/workflow/stateful
In directory cvs.zope.org:/tmp/cvs-serv7874/app/browser/workflow/stateful

Added Files:
	contentworkflow_registry.pt 
Log Message:
Oops, forgot to add these files to the CVS. They go with the previous checkin.


=== Added File Zope3/src/zope/app/browser/workflow/stateful/contentworkflow_registry.pt ===
<html metal:use-macro="views/standard_macros/page">
 
  <head>
    <title>Process Definition <-> Content Type Registry</title>
  </head>
 
  <body><div metal:fill-slot="body">
 
    <p tal:define="status view/update"
       tal:condition="status"
       tal:content="status" />

    <p>This screen let's you specify which content types (by interface) can
       receive which workflows (process definitions).</p>

    <form action="./@@registry.html" method="POST">
      <h3>Available Mappings</h3>
       
      <ul tal:condition="view/process_based">
        <input type="hidden" name="other_view" value="0"/>
        <li tal:repeat="process view/getProcessInterfacesMapping">
          <b tal:content="process/name" /><br/>
          <tal:block repeat="iface process/ifaces">
            <input type="checkbox" name="mappings:list"
              tal:attributes="value string:${process/name}:${iface}">
            <d tal:replace="iface"/><br/>
          </tal:block>
        </li>
      </ul>

      <ul tal:condition="not: view/process_based">
        <input type="hidden" name="other_view" value="1"/>
        <li tal:repeat="iface view/getInterfaceProcessesMapping">
          <b tal:content="iface/iface" /><br/>
          <tal:block repeat="name iface/names">
            <input type="checkbox" name="mappings:list"
              tal:attributes="value string:${name}:${iface/iface}">
            <d tal:replace="name"/><br/>
          </tal:block>
        </li>
      </ul>

      <div class="row">
        <div class="controls" style="width: 100%"> 
           <input type="submit" value="Switch View" name="SWITCH" />
           <input type="submit" value="Remove Mappings" name="REMOVE" />
         </div>
      </div>

      <h3>Add new Mapping</h3>
      <div class="row" 
           tal:content="structure view/iface_widget/row" />
      <div class="row" 
           tal:content="structure view/name_widget/row" />
      <div class="row">
        <div class="controls"> 
           <input type="submit" value="Add Mappings" name="ADD" />
         </div>
      </div>
    </form>
 
  </div></body>
 
</html>