[Zope3-checkins] CVS: ZopeProducts/RotterdamSprint - folder_contents.pt:1.2 template.pt:1.18
Bernhard Buehlmann
b.buehlmann@4teamwork.ch
Fri, 6 Dec 2002 08:36:33 -0500
Update of /cvs-repository/ZopeProducts/RotterdamSprint
In directory cvs.zope.org:/tmp/cvs-serv16357
Modified Files:
folder_contents.pt template.pt
Log Message:
added 'add new content' in common tasks.
=== ZopeProducts/RotterdamSprint/folder_contents.pt 1.1 => 1.2 ===
--- ZopeProducts/RotterdamSprint/folder_contents.pt:1.1 Thu Dec 5 12:02:48 2002
+++ ZopeProducts/RotterdamSprint/folder_contents.pt Fri Dec 6 08:36:30 2002
@@ -4,24 +4,27 @@
</style>
</head>
<body>
-<div metal:fill-slot="body">
-<div metal:define-macro="contents">
- <div>Contents <a href="+"> Add... </a> </div>
-
- <form method="">
- <select name="item">
+<div metal:fill-slot="commonTasks">
+Add new content:<br>
<tal:block repeat="info context/@@+/addingInfo">
- <option tal:attributes="value info/id|default"
+ <a href="#" tal:attributes="href string:${request/getURL}?type_name=${info/title}" >
+ <div tal:attributes="value info/id|default"
tal:content="info/title">Folder
- </option>
+ </div>
+ </a>
</tal:block>
- </select>
- </form>
- <form name="containerContentsForm" method="get" action="."
- tal:define="container_contents view/listContentInfo"
- tal:condition="container_contents"
- >
+</div>
+<div metal:fill-slot="body">
+<div metal:define-macro="contents">
+<!--
+ <div tal:condition="request/type_name|nothing">
+ <form action="+/action.html" method="POST">
+ <input type="hidden" name="type_name" tal:attributes="value request/type_name">
+ <input name="id" value="">
+ </form>
+ </div>
+ -->
<table id="sortable" class="listing" summary="Content listing"
cellpadding="2" cellspacing="0"
@@ -40,6 +43,23 @@
</thead>
<tbody>
+ <tr tal:condition="request/type_name|nothing">
+ <td></td>
+ <td>
+ <form action="+/action.html" method="POST">
+ <input type="hidden" name="type_name" tal:attributes="value request/type_name">
+ <input name="id" value="">
+ </form>
+ </td>
+ <td></td>
+ <td></td>
+ <td></td>
+ </tr>
+ <form name="containerContentsForm" method="get" action="."
+ tal:define="container_contents view/listContentInfo"
+ tal:condition="container_contents"
+ >
+
<metal:block tal:repeat="item container_contents">
<tr tal:define="oddrow repeat/item/odd; url item/url"
@@ -74,15 +94,19 @@
tal:content="modified"> </span></td>
</tr>
</metal:block>
+ <tr>
+ <td colspan="6">
+ <input type="submit" name="@@removeObjects.html:method" value="Delete"
+ tal:attributes="value string:menu_delete_button"
+ i18n:attributes="value" />
+ </td>
+ </tr>
+ </form>
+
</tbody>
</table>
<br />
- <input type="submit" name="@@removeObjects.html:method" value="Delete"
- tal:attributes="value string:menu_delete_button"
- i18n:attributes="value" />
-
- </form>
</div>
=== ZopeProducts/RotterdamSprint/template.pt 1.17 => 1.18 ===
--- ZopeProducts/RotterdamSprint/template.pt:1.17 Thu Dec 5 17:22:58 2002
+++ ZopeProducts/RotterdamSprint/template.pt Fri Dec 6 08:36:30 2002
@@ -298,6 +298,10 @@
</div>
+ <metal:block define-slot="commonTasks">
+
+
+ </metal:block>
<div class="content even">