comparison 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
comparison
equal deleted inserted replaced
169:2da62e93a1c6 170:485bf377913a
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" 1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
2 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 2 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3 <html metal:use-macro="here/mainEditFile/macros/page"> 3 <html metal:use-macro="here/mainEditFile/macros/page">
4 <body> 4 <body>
5 <tal:block metal:fill-slot="navsel" tal:define="global menusel string:talks" /> 5 <tal:block metal:fill-slot="navsel" tal:define="global menusel string:publications" />
6 6
7 <tal:block metal:fill-slot="body" tal:define="yes_no_list python:'yes\nno'"> 7 <tal:block metal:fill-slot="body">
8 <form action="" method="post"> 8 <h3>Search publication to select</h3>
9 <input type="hidden" name="method" value="search"/> 9 <form action="" method="post">
10 <div> Author/Editor: <input type="text" size="30" name="author"/></div> 10 <input type="hidden" name="method" value="search" />
11 <div> Title: <input type="text" size="30" name="title"/></div> 11 <table>
12 <div> Somewhere in the metadata: <input type="text" size="30" name="any"/></div> 12 <tr>
13 13 <td>Author/Editor</td>
14 <input type="submit" value="submit"> 14 <td><input type="text" size="30" name="author" /></td>
15 </tr>
16 <tr>
17 <td>Title</td>
18 <td><input type="text" size="30" name="title" /></td>
19 </tr>
20 <tr>
21 <td>Somewhere in the metadata</td>
22 <td><input type="text" size="30" name="any" /></td>
23 </tr>
24 </table>
25 <p>
26 <input type="submit" value="Search" />
27 </p>
28 </form>
15 29
16 </form> 30 <div tal:condition="python:options.has_key('values')">
31 <form action="" method="post">
32 <input type="hidden" name="method" value="add" />
33 <h3>Select publication(s) to add</h3>
34 <table>
35 <tr tal:repeat="entry python:options['values'].items()">
36 <td><input type="checkbox" value="add" tal:attributes="name python:entry[0]" /></td>
37 <td><tal:x tal:replace="structure python:entry[1]" /></td>
38 </tr>
39 </table>
40 <p>
41 <input type="submit" value="Add to selected publications" />
42 </p>
43 <p>
44 <a tal:attributes="href string:$root/editPublications">Back to publication list</a>
45 </p>
46 </form>
17 47
18 48 </div>
19 <div tal:condition="python:options.has_key('values')"> 49 </tal:block>
20 <form action="" method="post">
21 <input type="hidden" name="method" value="add"/>
22
23 <table>
24
25
26 <tr tal:repeat="entry python:options['values'].items()">
27 <td><input type="checkbox" value="add" tal:attributes="name python:entry[0]"/></td>
28 <td><tal:x tal:replace="structure python:entry[1]"/></td>
29 </tr>
30
31 </table>
32 <input type="submit" value="submit"/>
33
34 </form>
35
36 </div>
37 </tal:block>
38 </body> 50 </body>
39 </html> 51 </html>