[Zope3-checkins] CVS: Zope3/lib/python/Zope/App/OFS/Content/Folder/Views/Browser - contents.pt:1.12
Jim Fulton
jim@zope.com
Fri, 4 Oct 2002 16:05:30 -0400
Update of /cvs-repository/Zope3/lib/python/Zope/App/OFS/Content/Folder/Views/Browser
In directory cvs.zope.org:/tmp/cvs-serv8025/lib/python/Zope/App/OFS/Content/Folder/Views/Browser
Modified Files:
contents.pt
Log Message:
Changed to use content listing macro from the base Contents view.
=== Zope3/lib/python/Zope/App/OFS/Content/Folder/Views/Browser/contents.pt 1.11 => 1.12 ===
--- Zope3/lib/python/Zope/App/OFS/Content/Folder/Views/Browser/contents.pt:1.11 Tue Oct 1 08:49:07 2002
+++ Zope3/lib/python/Zope/App/OFS/Content/Folder/Views/Browser/contents.pt Fri Oct 4 16:05:29 2002
@@ -18,69 +18,10 @@
<body>
<div metal:fill-slot="body">
-<div>Folder Contents <a href="+"> Add... </a> </div>
+ <div metal:use-macro="view/contentsMacros/macros/contents" />
- <form name="folderContentsForm" method="get" action="."
- tal:define="folder_contents view/listContentInfo">
-
- <metal:block tal:condition="folder_contents">
-
- <table id="sortable" class="listing" summary="Content listing"
- cellpadding="2" cellspacing="0"
- metal:define-macro="folder_listing">
-
- <thead>
- <tr>
- <th> </th>
- <th> </th>
- <th>Title
- <img src="/@@/arrowUp.gif" alt="Sort" height="6" width="9" />
- </th>
- </tr>
- </thead>
- <tbody>
- <metal:block tal:repeat="item folder_contents">
- <tr tal:define="oddrow repeat/item/odd; url item/url"
- tal:attributes="class python:oddrow and 'even' or 'odd'" >
- <td>
- <input type="checkbox" class="noborder" name="ids:list" id="#"
- value="#"
- tal:attributes="value item/id;
- id python: 'cb_'+item['id'];
- checked request/ids_checked|nothing;"/>
- </td>
- <td>
- <a href="#"
- tal:attributes="href
- string:${url}/@@SelectedManagementView.html"
- tal:content="structure item/icon|default"
- >
- </a>
- </td>
- <td>
- <a href="#"
- tal:attributes="href
- string:${url}/@@SelectedManagementView.html"
- >
- <span tal:replace="item/id">Id</span>
- <span tal:condition="item/title"
- tal:replace="string: (${item/title})">(Title)</span>
- </a>
- </td>
- </tr>
- </metal:block>
- </tbody>
- </table>
- <br />
-
- <input type="submit" name="@@removeObjects.html:method" value="Delete"
- tal:attributes="value string:menu_delete_button"
- i18n:attributes="value" />
-
- </metal:block>
- </form>
-
- <p><a href="./++etc++Services/"
+ <p>
+ <a href="./++etc++Services/"
tal:condition="context/hasServiceManager">Services</a>
<a href="@@addServiceManager.html"
tal:condition="not: context/hasServiceManager">Allow Services</a>