diff zpt/editHistoricalNames.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/editHistoricalNames.zpt	Thu Jan 10 17:52:13 2013 +0100
@@ -0,0 +1,43 @@
+<h2> Edit historical names </h2>
+
+<tal:block tal:define="names here/nameIndexEdited/keys; dummy python:names.sort()">
+<table>
+   <tal:x tal:repeat="name names">
+	<form action="editNameIndex" method="post">
+   	<tr>
+         <td tal:content="name">NAME</td>
+         <td>
+         	<input type="hidden" name="name" tal:attributes="value name">
+         	<textarea cols=50 rows=5 name="occurrances" tal:content="python:'\n'.join(here.nameIndexEdited[name])">OCCURENCES</textarea>
+         </td>
+         <td>
+         	<a target="names" tal:attributes="href python:'misc/search/namesMentioned?name=%s'%name">Show occurances</a>
+         </td>
+         <td>
+         	<input type="submit" value="delete" name="submit">
+         	<input type="submit" value="change" name="submit">
+         <tr>
+    </tr>	
+    </form>
+   </tal:x>
+   </table>
+   <h2>Add name</h2>
+   <table>
+   <form action="editNameIndex" method="post">
+   <tr>
+         <td><input name="name" size=50>
+         </td>
+         <td>
+         	<textarea cols=50 rows=5 name="occurrances"></textarea>
+         </td>
+         
+         <td>
+         	<input type="submit" value="add" name="submit">
+         	
+         <tr>
+    </tr>	
+   </form>
+   </table>
+   
+    <!-- Don't change from here -->
+  </tal:block>
\ No newline at end of file