diff zpt/editMainData.zpt @ 0:bca61e893fcc

first checkin of MPIWGWeb r2 branch from CVS into mercurial
author casties
date Thu, 10 Jan 2013 17:52:13 +0100
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/zpt/editMainData.zpt	Thu Jan 10 17:52:13 2013 +0100
@@ -0,0 +1,103 @@
+<!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:maindata"/>
+  <tal:block metal:fill-slot="body" tal:define="yes_no_list python:'yes\nno';
+  global person python:here.ZSQLInlineSearchU(_table='personal_www',key=here.getKeyUTF8())"
+  >
+  <form action="editMainData" method="get">
+  <table>
+  	<tr>
+  		<td><b>Name</b></td>
+  		<td><input size="30" tal:attributes="value python:here.unicodify(person.last_name)" name="last_name"></td>
+  	</tr>
+  	<tr>
+  		<td><b>First Name</b></td>
+  		<td><input size="30" tal:attributes="value python:here.decode(person.first_name)" name="first_name"></td>
+  	</tr>
+  	<tr>
+  	 	<td><b>Academic degrees and position</b></td>
+  		<td><textarea  tal:content="python:here.decode(person.titles_new)" name="titles_new" cols="60" rows="3"/></td>
+  	</tr>
+  	<tr>
+  		<td><b>Status</b></td>
+  		<td tal:content="python:here.decode(person.status)"/>
+  	</tr>
+  	<tr>
+  		<td><b>Department</b></td>
+  		<td tal:content="python:here.decode(person.department)"/>
+  	</tr>
+  	<tr>
+  		<td><b>Stay</b></td>
+  		<td><span tal:content="python:here.decode(person.date_from)"/> to
+  		  <span tal:content="python:here.decode(person.date_to)"/>
+  		</td>
+  	<tr>
+  		<td><b>Funded by (external funding)</b></td>
+  		<td><input size="30" tal:attributes="value python:here.decode(person.funded_by)" name="funded_by"></td>
+  	</tr>
+  	
+<!--  	<tr>
+  	 	<td><b>Home institution</b></td>
+  		<td><input size="30" tal:attributes="value python:here.decode(person.home_inst)" name="home_inst"></td>
+  	</tr>-->
+ </table>
+ <table>
+    <tr><th></th><th></th><th align="left">show</th></tr>
+ 	<tr>
+ 		<td><b>email (MPIWG)</b></td>
+ 		<td tal:content="python:here.decode(person.e_mail)"/>
+ 		<td valign="top" tal:content="structure python:here.ZSQLSelectionFromCRList(
+			     'e_mail_p',
+			     yes_no_list,
+			     boxType='radio',
+			     checked=person.e_mail_p)"/>
+ 	</tr>
+ 	<tr>
+ 		<td><b>email (additional)</b></td>
+ 		<td><input size="30" name="e_mail2" tal:attributes="value python:here.decode(person.e_mail2)"></td>
+ 		<td valign="top" tal:content="structure python:here.ZSQLSelectionFromCRList(
+			     'e_mail2_p',
+			     yes_no_list,
+			     boxType='radio',
+			     checked=person.e_mail2_p)"/>
+ 	</tr>
+ 	<tr>
+ 		<td><b>Room</b></td>
+ 		<td><input size="30" name="room_no" tal:attributes="value python:here.decode(person.room_no)"></td>
+ 		<td>(never published)</td>
+ 	</tr>
+ 	
+<!-- 	<tr>
+ 		<td><b>Private homepage</b></td>
+ 		<td><input size="30" name="private_homepage" tal:attributes="value python:here.decode(person.private_homepage)"></td>
+ 		<td>&nbsp;</td>
+ 	</tr>
+ -->	
+ 	<tr>
+ 		<td><b>Telephone</b></td>
+ 		<td><input size="30" name="telefon" tal:attributes="value python:here.decode(person.telefon)"></td>
+ 		<td valign="top" tal:content="structure python:here.ZSQLSelectionFromCRList(
+			     'telefon_p',
+			     yes_no_list,
+			     boxType='radio',
+			     checked=person.telefon_p)"/>
+ 	</tr>
+ 	<tr>
+ 		<td><b>Fax</b></td>
+ 		<td><input size="30" name="fax" tal:attributes="value python:here.decode(person.fax)"></td>
+ 		<td valign="top" tal:content="structure python:here.ZSQLSelectionFromCRList(
+			     'fax_p',
+			     yes_no_list,
+			     boxType='radio',
+			     checked=person.fax_p)"/>
+ 	</tr>
+ </table>
+ <input type="submit" value="submit">
+ </form>
+ <p>To add references to your homepage at other institutions plese use <a href="editAdditionalLinks">the additional links tab</a></p>
+ </tal:block>
+ </body>
+ </html>
+ 
\ No newline at end of file