diff zpt/project/edit_publications.zpt @ 60:dc41deabc8f8

more work on projects. more cleanup.
author casties
date Thu, 02 May 2013 11:26:57 +0200
parents a6ace48c2bf2
children 04fb655633ef
line wrap: on
line diff
--- a/zpt/project/edit_publications.zpt	Thu May 02 10:14:52 2013 +0200
+++ b/zpt/project/edit_publications.zpt	Thu May 02 11:26:57 2013 +0200
@@ -7,16 +7,17 @@
 <tal:block metal:fill-slot="navsel" tal:define="global menusel string:publications" />
 <tal:block metal:fill-slot="body">
   <table>
-    <tal:block tal:repeat="publication here/getPublications">
+    <tal:block tal:repeat="publication here/getRelatedPublications">
       <tr>
         <td>
-          <a tal:attributes="href python:here.absolute_url()+'/managePublications?pubName='+publication[0]+'&op=up'">up</a><br>
-          <a tal:attributes="href python:here.absolute_url()+'/managePublications?pubName='+publication[0]+'&op=down'">down</a>
+          <a tal:attributes="href python:here.absolute_url()+'/managePublications?pubName='+publication.getId()+'&op=up'">up</a><br>
+          <a tal:attributes="href python:here.absolute_url()+'/managePublications?pubName='+publication.getId()+'&op=down'">down</a>
         </td>
-        <td tal:content="structure python:getattr(publication[1],'text','')" />
+        <td tal:content="string:[${publication/place}]"/>
+        <td tal:content="structure python:getattr(publication,'text','')" />
         <td>
-          <a tal:attributes="href python:publication[1].getId()+'/editPublication'">Edit</a><br/> 
-          <a tal:attributes="href python:'deletePublication?id='+publication[1].getId()">Delete</a>
+          <a tal:attributes="href python:publication.getId()+'/editPublication'">Edit</a><br/> 
+          <a tal:attributes="href python:'deletePublication?id='+publication.getId()">Delete</a>
         </td>
       </tr>
     </tal:block>
@@ -39,8 +40,8 @@
 		</tal:x>
 </h3>-->
 
-<h3><a href=" addPublicationsFromPubman"> Add publication to extended list</a></h3>
-<h3><a href=" changePublications"> Change publication list</a></h3>
+<h3><a href="addPublicationsFromPubman"> Add publication to extended list</a></h3>
+<h3><a href="changePublications"> Change publication list</a></h3>
 </tal:block>
 </body>
 </html>