Mercurial > hg > MPIWGWeb
diff zpt/staff/pubman/add_publications.zpt @ 170:485bf377913a
fix staff editing pages.
author | casties |
---|---|
date | Fri, 07 Jun 2013 16:29:34 +0200 |
parents | 33c663a08025 |
children | 81a8177ca354 |
line wrap: on
line diff
--- a/zpt/staff/pubman/add_publications.zpt Fri Jun 07 12:47:11 2013 +0200 +++ b/zpt/staff/pubman/add_publications.zpt Fri Jun 07 16:29:34 2013 +0200 @@ -2,38 +2,50 @@ "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:talks" /> - -<tal:block metal:fill-slot="body" tal:define="yes_no_list python:'yes\nno'"> - <form action="" method="post"> - <input type="hidden" name="method" value="search"/> - <div> Author/Editor: <input type="text" size="30" name="author"/></div> - <div> Title: <input type="text" size="30" name="title"/></div> - <div> Somewhere in the metadata: <input type="text" size="30" name="any"/></div> - - <input type="submit" value="submit"> - - </form> - + <tal:block metal:fill-slot="navsel" tal:define="global menusel string:publications" /> -<div tal:condition="python:options.has_key('values')"> -<form action="" method="post"> - <input type="hidden" name="method" value="add"/> - -<table> - + <tal:block metal:fill-slot="body"> + <h3>Search publication to select</h3> + <form action="" method="post"> + <input type="hidden" name="method" value="search" /> + <table> + <tr> + <td>Author/Editor</td> + <td><input type="text" size="30" name="author" /></td> + </tr> + <tr> + <td>Title</td> + <td><input type="text" size="30" name="title" /></td> + </tr> + <tr> + <td>Somewhere in the metadata</td> + <td><input type="text" size="30" name="any" /></td> + </tr> + </table> + <p> + <input type="submit" value="Search" /> + </p> + </form> -<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> + <div tal:condition="python:options.has_key('values')"> + <form action="" method="post"> + <input type="hidden" name="method" value="add" /> + <h3>Select publication(s) to add</h3> + <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> + </table> + <p> + <input type="submit" value="Add to selected publications" /> + </p> + <p> + <a tal:attributes="href string:$root/editPublications">Back to publication list</a> + </p> + </form> -</table> -<input type="submit" value="submit"/> - -</form> - -</div> -</tal:block> + </div> + </tal:block> </body> </html>