CVS: Products/PluginRegistry/www - active_plugins.zpt:1.1

Jens Vagelpohl <[email protected]>
Newsgroups gmane.comp.web.zope.public-cvs
Message-ID <[email protected]>
Update of /cvs-repository/Products/PluginRegistry/www
In directory cvs.zope.org:/tmp/cvs-serv5234/www

Added Files:
	active_plugins.zpt 
Log Message:
- Saner version name

- Added a new ZMI tab offering a simple overview over active/available
  plugins for each known plugin type. 


=== Added File Products/PluginRegistry/www/active_plugins.zpt ===
<h1 tal:replace="structure here/manage_page_header"> PAGE HEADER </h1>
<h2 tal:replace="structure here/manage_tabs"> TABS </h2>

<h3> Active Plugins </h3>

<p class="form-help">
  This view shows all known plugin types and which plugins have been
  activated or are still available for each type.
</p>

<table>

  <tr class="list-header">
    <td class="form-label"> Plugin Type </td>
    <td class="form-label"> Active plugins </td>
    <td class="form-label"> Available plugins </td>
  </tr>

   <tr tal:repeat="info here/listPluginTypeInfo">

     <td class="form-text">
       <a href="?plugin_type=PTYPE"
          tal:attributes="href string:?plugin_type=${info/id}"
          tal:content="string: ${info/title/title} Plugins"
       >PLUGIN TYPE DESCRIPTION</a>
     </td>

     <tal:plugins define="plugins python: here.getAllPlugins(info['id'])">
       <td class="form-text"
           tal:define="actives plugins/active|python: []">
         <span tal:repeat="active_id actives"
               tal:omit-tag="active_id">
           <a href=""
              tal:attributes="href string:../${active_id}/manage_workspace"
              tal:content="string:${active_id}">foo_plugin</a> 
         </span>
       </td>

       <td class="form-text"
           tal:define="inactives plugins/available|python: []">
         <span tal:repeat="inactive_id inactives"
               tal:omit-tag="inactive_id">
           <a href=""
              tal:attributes="href string:../${inactive_id}/manage_workspace"
              tal:content="inactive_id">foo_plugin</a> 
         </span>
       </td>
     </tal:plugins>

   </tr>

</table>

<h1 tal:replace="structure here/manage_page_footer"> PAGE FOOTER </h1>

_______________________________________________
Zope-CVS maillist  -  [email protected]
http://mail.zope.org/mailman/listinfo/zope-cvs

Zope CVS instructions: http://dev.zope.org/CVS
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.