Mercurial > hg > MPIWGWeb
comparison zpt/staff/edit_teaching.zpt @ 170:485bf377913a
fix staff editing pages.
author | casties |
---|---|
date | Fri, 07 Jun 2013 16:29:34 +0200 |
parents | ee79f6ba8d01 |
children | 980794794bb5 |
comparison
equal
deleted
inserted
replaced
169:2da62e93a1c6 | 170:485bf377913a |
---|---|
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:teaching" /> | 5 <tal:block metal:fill-slot="navsel" tal:define="global menusel string:teaching" /> |
6 | 6 |
7 <tal:block metal:fill-slot="body"> | 7 <tal:block metal:fill-slot="body"> |
8 <form action="" method="post"> | 8 <form tal:attributes="action string:$root/editTeaching" method="post"> |
9 <input type="hidden" name="key_main" tal:attributes="value python:here.content.key"> | 9 <input type="hidden" name="key_main" tal:attributes="value python:here.content.key"> |
10 <input type="hidden" name="main_fields" value="teaching__title"> | 10 <input type="hidden" name="main_fields" value="teaching__title"> |
11 <table tal:define="founds2 python:here.getTeaching(published=False)"> | 11 <table tal:define="teachings python:here.getTeaching(published=False)"> |
12 <tr> | 12 <tr> |
13 <th>Date</th> | 13 <th>Date</th> |
14 <th>Title/Place/Link</th> | 14 <th>Title/Place/Link</th> |
15 <th>Priority</th> | 15 <th>Priority</th> |
16 <th>Show</th> | 16 <th>Show</th> |
17 </tr> | 17 </tr> |
18 <tr class="fliesstext" tal:repeat="found2 founds2"> | 18 <tr class="fliesstext" tal:repeat="teaching teachings"> |
19 <td valign="top"><input tal:attributes="name python:'teaching__date__'+str(found2.oid); | 19 <td valign="top"> |
20 value python:found2.date" size="10" /> | 20 <input tal:attributes="name python:'teaching__date__'+str(teaching.oid); value python:teaching.date" size="10" /> |
21 </td> | 21 </td> |
22 | 22 |
23 <td><input tal:attributes="name python:'teaching__title__'+str(found2.oid); | 23 <td> |
24 value python:found2.title" size="80" /> <br> | 24 <input tal:attributes="name python:'teaching__title__'+str(teaching.oid); value python:teaching.title" size="80" /> <br/> |
25 <input tal:attributes="name python:'teaching__place__'+str(found2.oid); | 25 <input tal:attributes="name python:'teaching__place__'+str(teaching.oid); value python:teaching.place" size="80" /> <br/> |
26 value python:found2.place" size="80" /> <br> | 26 <input tal:attributes="name python:'teaching__link__'+str(teaching.oid); value python:teaching.link" size="80" /> |
27 <input tal:attributes="name python:'teaching__link__'+str(found2.oid); | 27 </td> |
28 value python:found2.link" size="80" /></td> | |
29 | 28 |
30 <td valign="top"><input tal:attributes="name python:'teaching__priority__'+str(found2.oid); | 29 <td valign="top"> |
31 value found2/priority" | 30 <input tal:attributes="name python:'teaching__priority__'+str(teaching.oid); value teaching/priority" size="3" /> |
32 size="3" /></td> | 31 </td> |
33 <td valign="top" tal:define="name string:teaching__published__${found2/oid}; value found2/published;"> | 32 <td valign="top" tal:define="name string:teaching__published__${teaching/oid}; value teaching/published;"> |
34 <span metal:use-macro="here/common_template/macros/yesno_input_radio"/> | 33 <span metal:use-macro="here/common_template/macros/yesno_input_radio"/> |
35 </td> | 34 </td> |
36 <td><a tal:attributes="href python:'deleteField?table=teaching&oid=%s'%found2.oid">delete</a></td> | 35 <td><a tal:attributes="href string:$root/deleteField?table=teaching&oid=${teaching/oid}">delete</a></td> |
37 </tr> | 36 </tr> |
38 <tr colspan="4"> | 37 <tr colspan="4"> |
39 <td>Add new</td> | 38 <th>Add new</th> |
40 </tr> | 39 </tr> |
41 <tr> | 40 <tr> |
42 <td valign="top"><input tal:attributes="name python:'teaching__date__new'" size="10" /></td> | 41 <td valign="top"> |
43 <td><input tal:attributes="name python:'teaching__title__new'" size="80"> <br> | 42 <input tal:attributes="name python:'teaching__date__new'" size="10" /> |
44 <input tal:attributes="name python:'teaching__place__new'" size="80" /> <br> | 43 </td> |
45 <input tal:attributes="name python:'teaching__link__new'" size="80" /></td> | 44 <td> |
45 <input tal:attributes="name python:'teaching__title__new'" size="80"/> <br/> | |
46 <input tal:attributes="name python:'teaching__place__new'" size="80" /> <br/> | |
47 <input tal:attributes="name python:'teaching__link__new'" size="80" /> | |
48 </td> | |
46 <td><input tal:attributes="name python:'teaching__priority__new'" size="3"></td> | 49 <td><input tal:attributes="name python:'teaching__priority__new'" size="3"></td> |
47 <td valign="top" tal:define="name string:teaching__published__new; value string:yes;"> | 50 <td valign="top" tal:define="name string:teaching__published__new; value string:yes;"> |
48 <span metal:use-macro="here/common_template/macros/yesno_input_radio"/> | 51 <span metal:use-macro="here/common_template/macros/yesno_input_radio"/> |
49 </td> | 52 </td> |
50 </tr> | 53 </tr> |
51 </table> | 54 </table> |
52 <input type="submit" value="submit"> | 55 <p> |
56 <input type="submit" value="submit"/> | |
57 </p> | |
53 | 58 |
54 </form> | 59 </form> |
55 </tal:block> | 60 </tal:block> |
56 </body> | 61 </body> |
57 </html> | 62 </html> |