diff zpt/project/edit_related_projects.zpt @ 22:5ed0b0c21fe5

started to clean up MPIWGProject.
author casties
date Mon, 08 Apr 2013 20:28:29 +0200
parents zpt/MPIWGProject_manageRelatedProjectsForm.zpt@bca61e893fcc
children 1ed79b33200c
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/zpt/project/edit_related_projects.zpt	Mon Apr 08 20:28:29 2013 +0200
@@ -0,0 +1,35 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
+          "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html metal:use-macro="here/edit_MPIWGProject_main/macros/page">
+<head>
+</head>
+<body>
+<tal:block metal:fill-slot="navsel" tal:define="global menusel string:relatedProjects" />
+<tal:block metal:fill-slot="body">
+  <table>
+    <tal:block tal:repeat="publication here/getRelatedProjects">
+      <tr>
+        <td>
+          <a tal:attributes="href python:here.absolute_url()+'/manageRelatedProjects?pubName='+publication[0]+'&op=up'">up</a><br>
+          <a tal:attributes="href python:here.absolute_url()+'/manageRelatedProjects?pubName='+publication[0]+'&op=down'">down</a>
+        </td>
+        <td tal:content="structure python:getattr(publication[1],'objid','')" />
+        <td tal:content="structure python:getattr(publication[1],'projectWEB_title','')" />
+        <td>
+          <a tal:attributes="href python:publication[1].getId()+'/editRelatedProject'">Edit</a><br/> 
+          <a tal:attributes="href python:'deleteRelatedProject?id='+publication[1].getId()">Delete</a>
+        </td>
+      </tr>
+    </tal:block>
+  </table>
+
+  <h3>Add related projects</h3>
+  <p>Please add the link to the project you want to add a relation to.</p>
+  <form action="addRelatedProject" method="post">
+    <input name="link" size="100">
+    <p><input type="submit" value="submit"/></p>
+  </form>
+ 
+</tal:block>
+</body>
+</html>