diff zpt/staff/pubman/add_publications.zpt @ 201:81a8177ca354

shows where a entry comes from in editing mode
author dwinter
date Wed, 26 Jun 2013 16:49:31 +0200
parents 485bf377913a
children
line wrap: on
line diff
--- a/zpt/staff/pubman/add_publications.zpt	Wed Jun 26 16:02:53 2013 +0200
+++ b/zpt/staff/pubman/add_publications.zpt	Wed Jun 26 16:49:31 2013 +0200
@@ -34,8 +34,14 @@
         <table>
           <tr tal:repeat="entry python:options['values'].items()">
             <td><input type="checkbox" value="add" tal:attributes="name python:entry[0]" /></td>
-            <td><tal:x tal:replace="structure python:entry[1]" /></td>
-          </tr>
+            <td><tal:x tal:replace="structure python:entry[1][0]" /></td>
+             <tal:x condition="python:entry[1][1]=='escidoc:644427'">
+        		<td valign="top">General</td>
+ 		     </tal:x>
+       		 <tal:x condition="not:python:entry[1][1]=='escidoc:644427'">
+        	<td valign="top">Institute</td>
+        </tal:x>
+        </tr>
         </table>
         <p>
           <input type="submit" value="Add to selected publications" />