[Zope-Checkins] CVS: Zope3/lib/python/Zope/App/OFS/www - folder_main.pt:1.1.2.5 folder_remove_confirmed.pt:1.1.2.2

Stephan Richter srichter@cbu.edu
Sat, 19 Jan 2002 14:58:30 -0500


Update of /cvs-repository/Zope3/lib/python/Zope/App/OFS/www
In directory cvs.zope.org:/tmp/cvs-serv5130/www

Modified Files:
      Tag: Zope-3x-branch
	folder_main.pt folder_remove_confirmed.pt 
Log Message:
- made a small correction to the Folder tests
- added delete support in the folder main view


=== Zope3/lib/python/Zope/App/OFS/www/folder_main.pt 1.1.2.4 => 1.1.2.5 ===
 <body>
 <div metal:fill-slot="body">
-<table class="ContentListing">
 
-  <caption>Folder Contents <a href="adder;view"> Add... </a> </caption>
-
-  <tbody>
-
-    <tr>
-      <td class="ContentIcon"><br /> </td>
-      <th class="ContentTitle">Title</th>
-    </tr>
-
-    <!--
-      ** listContentInfo returns a sequence of mappings, containing:
-      **   'id'    : the ID of the contained within the container
-      **   'url'   : the absolute URL of the contained object
-      **   'title' : the title of the contained object
-      **   'icon'  : the absolute URL of the icon, for the contained object
-                     (may be None)
-      -->
-    <tr tal:repeat="info container/listContentInfo">
-
-      <td class="ContentIcon">
-        <img alt="Folder" src="../../ZMI/www/folder_icon.gif"
-             tal:condition="info/url"
-             tal:attributes="src info/url" />
-      </td>
-
-      <td class="ContentTitle">
-        <a href="subfolder_id"
-           tal:attributes="href info/url"
-           tal:content="info/title"
-        >Folder Title or ID here</a>
-      </td>
-
-    </tr>
-
-    <tr tal:condition="nothing">
-
-      <td class="ContentIcon">
-        <img alt="Document" src="../../ZMI/www/document_icon.gif" />
-      </td>
-
-      <td class="ContentTitle">
-         <a href="document_id">Document Title or ID here</a>
-      </td>
-
-    </tr>
-  </tbody>
-
-</table>
+<form action="contents;view" method="get">
+  <table class="ContentListing">
+  
+    <caption>Folder Contents <a href="adder;view"> Add... </a> </caption>
+  
+    <tbody>
+  
+      <tr>
+	<td class="ContentIcon"><br /> </td>
+	<th class="ContentTitle">Title</th>
+      </tr>
+  
+      <!--
+	** listContentInfo returns a sequence of mappings, containing:
+	**   'id'    : the ID of the contained within the container
+	**   'url'   : the absolute URL of the contained object
+	**   'title' : the title of the contained object
+	**   'icon'  : the absolute URL of the icon, for the contained object
+		       (may be None)
+	-->
+      <tr tal:repeat="info container/listContentInfo">
+  
+	<td class="ContentSelect">
+	  <input type="checkbox" name="ids:list" value="id"
+		 tal:attributes="value info/id" />
+	</td>
+  
+	<td class="ContentIcon">
+	  <img alt="Folder" src="../../ZMI/www/folder_icon.gif"
+	       tal:condition="info/url"
+	       tal:attributes="src info/url" />
+	</td>
+  
+	<td class="ContentTitle">
+	  <a href="subfolder_id"
+	     tal:attributes="href info/url"
+	     tal:content="info/title"
+	  >Folder Title or ID here</a>
+	</td>
+  
+      </tr>
+  
+      <tr tal:condition="nothing">
+  
+	<td class="ContentIcon">
+	  <img alt="Document" src="../../ZMI/www/document_icon.gif" />
+	</td>
+  
+	<td class="ContentTitle">
+	   <a href="document_id">Document Title or ID here</a>
+	</td>
+  
+      </tr>
+    </tbody>
+  
+  </table>
+  <br />
+
+  <input type="submit" name="removeObjects:method" value="Delete"
+         i18n:attributes="value string:menu_delete_button"> 
+</form>
 
 </div>
 </body>
 </html>
+
+
 
 


=== Zope3/lib/python/Zope/App/OFS/www/folder_remove_confirmed.pt 1.1.2.1 => 1.1.2.2 ===
 <body>
 
-<p> Object removed successfully. </p>
+<p> Object(s) removed successfully. </p>
 
 </body>
 </html>