diff zpt/staff/edit_publications.zpt @ 170:485bf377913a

fix staff editing pages.
author casties
date Fri, 07 Jun 2013 16:29:34 +0200
parents ee79f6ba8d01
children 5b7f136b3463
line wrap: on
line diff
--- a/zpt/staff/edit_publications.zpt	Fri Jun 07 12:47:11 2013 +0200
+++ b/zpt/staff/edit_publications.zpt	Fri Jun 07 16:29:34 2013 +0200
@@ -5,21 +5,42 @@
   <tal:block metal:fill-slot="navsel" tal:define="global menusel string:publications" />
   <tal:block metal:fill-slot="body">
 
+    <form method="post" tal:attributes="action string:$root/editPublications">
 
-    <h2>Selection mode</h2>
-    <form method="post" action="">
-     <input type="radio" name="selectionMode" value="year" tal:attributes="checked python:here.content.publications_mode=='year'" />
-      Show the five most recent publications. (no further action needed)
+    <h3>Selection mode</h3>
+    <p>
+     <input type="radio" name="selectionMode" value="year" 
+      tal:attributes="checked python:here.content.publications_mode=='year'" />
+      Show the five most recent publications. (no further action needed)<br/>
       <input type="radio" name="selectionMode" value="priority"
-        tal:attributes="checked python:here.content.publications_mode=='priority'" />Show selected publications.
-      <input type="submit" name="submit" />
+        tal:attributes="checked python:here.content.publications_mode=='priority'" />
+      Show selected publications.
+    </p>
+    <p>
+      <input type="submit" value="Set mode" />
+    </p>
     </form>
 
-    <ul tal:condition="python:here.content.publications_mode=='priority'">
-      <li><a href="addPublicationsFromPubman">Add an Entry</a></li>
-      <li><a href="changePublications">Delete entries from the list or Change the priorities</a></li>
+    <h3>Publications</h3>
 
-    </ul>
+    <table>
+      <tr>
+        <th>Priority</th><th>Citation</th>
+      </tr>
+      <tr tal:repeat="entry python:here.getSelectedPublications()">
+        <td valign="top" tal:content="string:[${entry/priority}]" />
+        <td valign="top" tal:content="structure python:here.mpiwgPubman.getEntryFromPubman(entry.escidocid)"/>
+      </tr>
+    </table>  
+
+    <div tal:condition="python:here.content.publications_mode=='priority'">
+      <p>
+        <a tal:attributes="href string:$root/changePublications">Change the selected publications</a>
+      </p>
+      <p>
+        <a tal:attributes="href string:$root/addPublicationsFromPubman">Add an entry to the selected publications</a>
+      </p>
+    </div>
 
   </tal:block>
 </body>