diff zpt/staff/edit_additionalLinks.zpt @ 37:9b38ba45773b

?berarbeitung MPIWGStaff neue editfunktionen
author dwinter
date Fri, 26 Apr 2013 17:19:08 +0200
parents
children ee79f6ba8d01
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/zpt/staff/edit_additionalLinks.zpt	Fri Apr 26 17:19:08 2013 +0200
@@ -0,0 +1,71 @@
+<!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/mainEditFile/macros/page">
+<body>
+<tal:block metal:fill-slot="navsel" tal:define="global menusel string:additionalLink" />
+<p>You can add links to documents or project websites you want to provide and are relevant for
+presenting your work and research interests</p>
+
+<tal:block metal:fill-slot="body" tal:define="yes_no_list python:'yes\nno'">
+  <form action="" method="post">
+  <input type="hidden" name="main_fields" value="additionalLink__title">
+  <table tal:define="founds2 python:here.getAdditionalLinks()">
+   <tal:x tal:repeat="found2 python:here.sortPriority(founds2)">
+    <tr class="fliesstext">
+      <td>Text over Link</td>
+      <td><input tal:attributes="name python:'additionalLink__title__'+str(found2.oid); 
+				     value python:found2.title" size="80" /> </td>
+	</tr>
+	<tr>
+		<td>Url</td>
+     	<td><input tal:attributes="name python:'additionalLink__link__'+str(found2.oid); 
+				     value python:found2.link" size="80" /></td>
+	</tr>
+	<tr>
+      <td valign="top">Priority <input tal:attributes="name python:'additionalLink__priority__'+str(found2.oid);
+				     value python:found2.priority"
+        size="3" />
+      </td>
+      <td valign="top">Publish 
+        <tal:x tal:content="structure python:here.ZSQLSelectionFromCRList(
+			     'additionalLink__published__'+str(found2.oid),
+			     yes_no_list,
+			     boxType='radio',
+			     checked=found2.published)" />
+      &nbsp;&nbsp;<a tal:attributes="href python:'deleteField?table=additionalLink&oid=%s'%found2.oid">delete this link</a>
+      </td>
+    </tr>
+    <tr>
+    	<td colspan="2"><hr/></td>
+   	</tr>
+    </tal:x>
+    <tr >
+      <td colspan="2"><b>Add new link</b></td>
+    </tr>
+    <tr>
+   		<td>Text over Link</td>
+   		<td><input tal:attributes="name python:'additionalLink__title__new'" size="80"/></td>
+    </tr>
+    <tr>
+    	<td>Url</td>
+     	<td><input tal:attributes="name python:'additionalLink__link__new'" size="80" /></td>
+    </tr>
+    <tr>
+      <td>Priority <input tal:attributes="name python:'additionalLink__priority__new'" size="3"></td>
+      <td valign="top">Publish
+        <tal:x tal:content="structure python:here.ZSQLSelectionFromCRList(
+			     'additionalLink__published__new',
+			     yes_no_list,
+			     boxType='radio',
+			     checked='yes')" />
+			     </td>
+    </tr>
+  </table>
+  <input type="submit" value="submit">
+
+  </form>
+  <p>Please contact the IT Group <a href="mailto:itgroup@mpiwg-berlin.mpg.de">itgroup@mpiwg-berlin.mpg.de</a>, if you intend
+  to link to documents not available in the net and if you want to publish these.</p>
+</tal:block>
+</body>
+</html>