Mercurial > hg > MPIWGWeb
comparison zpt/staff/edit_talks.zpt @ 170:485bf377913a
fix staff editing pages.
author | casties |
---|---|
date | Fri, 07 Jun 2013 16:29:34 +0200 |
parents | ee79f6ba8d01 |
children | 2598210ada7a |
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:talks" /> | 5 <tal:block metal:fill-slot="navsel" tal:define="global menusel string:talks" /> |
6 | 6 |
7 <tal:block metal:fill-slot="body" tal:define="yes_no_list python:'yes\nno'"> | 7 <tal:block metal:fill-slot="body" tal:define="yes_no_list python:'yes\nno'"> |
8 <form action="" method="post"> | 8 <form tal:attributes="action string:$root/editTalks" 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="talks__title"> | 10 <input type="hidden" name="main_fields" value="talks__title"> |
11 <table tal:define="founds2 python:here.getTalks(published=False)"> | 11 <table tal:define="talks python:here.getTalks(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 tal:repeat="found2 founds2"> | 18 <tr tal:repeat="talk talks"> |
19 <td valign="top"> | 19 <td valign="top"> |
20 <input tal:attributes="name python:'talks__date__'+str(found2.oid); | 20 <input tal:attributes="name python:'talks__date__'+str(talk.oid); value talk/date" size="10" /> |
21 value found2/date" size="10" /> | |
22 </td> | 21 </td> |
23 <td> | 22 <td> |
24 <input tal:attributes="name python:'talks__title__'+str(found2.oid); | 23 <input tal:attributes="name python:'talks__title__'+str(talk.oid); value python:talk.title" size="80" /><br> |
25 value python:found2.title" size="80" /><br> | 24 <input tal:attributes="name python:'talks__place__'+str(talk.oid); value python:talk.place" size="80" /><br> |
26 <input tal:attributes="name python:'talks__place__'+str(found2.oid); | 25 <input tal:attributes="name python:'talks__link__'+str(talk.oid); value python:talk.link" size="80" /> |
27 value python:found2.place" size="80" /><br> | |
28 <input tal:attributes="name python:'talks__link__'+str(found2.oid); | |
29 value python:found2.link" size="80" /> | |
30 </td> | 26 </td> |
31 <td valign="top"> | 27 <td valign="top"> |
32 <input tal:attributes="name python:'talks__priority__'+str(found2.oid); value found2/priority" size="3" /> | 28 <input tal:attributes="name python:'talks__priority__'+str(talk.oid); value talk/priority" size="3" /> |
33 </td> | 29 </td> |
34 <td valign="top" tal:define="name string:talks__published__${found2/oid}; value found2/published;"> | 30 <td valign="top" tal:define="name string:talks__published__${talk/oid}; value talk/published;"> |
35 <span metal:use-macro="here/common_template/macros/yesno_input_radio"/> | 31 <span metal:use-macro="here/common_template/macros/yesno_input_radio"/> |
36 </td> | 32 </td> |
37 <td> | 33 <td> |
38 <a tal:attributes="href python:'deleteField?table=talks&key=%s'%found2.oid">delete</a> | 34 <a tal:attributes="href string:$root/deleteField?table=talks&key=${talk/oid}">delete</a> |
39 </td> | 35 </td> |
40 </tr> | 36 </tr> |
41 <tr colspan="4"> | 37 <tr colspan="4"> |
42 <td>Add new</td> | 38 <th>Add new</th> |
43 </tr> | 39 </tr> |
44 <tr> | 40 <tr> |
45 <td valign="top"><input tal:attributes="name python:'talks__date__new'" size="10" /></td> | 41 <td valign="top"><input tal:attributes="name python:'talks__date__new'" size="10" /></td> |
46 <td><input tal:attributes="name python:'talks__title__new'" size="80"> <br> | 42 <td> |
47 <input tal:attributes="name python:'talks__place__new'" size="80" /> <br> | 43 <input tal:attributes="name python:'talks__title__new'" size="80"/> <br/> |
48 <input tal:attributes="name python:'talks__link__new'" size="80" /></td> | 44 <input tal:attributes="name python:'talks__place__new'" size="80" /> <br/> |
49 <td><input tal:attributes="name python:'talks__priority__new'" size="3"></td> | 45 <input tal:attributes="name python:'talks__link__new'" size="80" /> |
46 </td> | |
47 <td> | |
48 <input tal:attributes="name python:'talks__priority__new'" size="3"> | |
49 </td> | |
50 <td valign="top" tal:define="name string:talks__published__new; value string:yes;"> | 50 <td valign="top" tal:define="name string:talks__published__new; value string:yes;"> |
51 <span metal:use-macro="here/common_template/macros/yesno_input_radio"/> | 51 <span metal:use-macro="here/common_template/macros/yesno_input_radio"/> |
52 </td> | 52 </td> |
53 </tr> | 53 </tr> |
54 </table> | 54 </table> |
55 <input type="submit" value="submit"> | 55 <p> |
56 | 56 <input type="submit" value="submit"/> |
57 </p> | |
57 </form> | 58 </form> |
58 </tal:block> | 59 </tal:block> |
59 </body> | 60 </body> |
60 </html> | 61 </html> |