annotate 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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
37
9b38ba45773b ?berarbeitung MPIWGStaff
dwinter
parents:
diff changeset
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
9b38ba45773b ?berarbeitung MPIWGStaff
dwinter
parents:
diff changeset
2 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
9b38ba45773b ?berarbeitung MPIWGStaff
dwinter
parents:
diff changeset
3 <html metal:use-macro="here/mainEditFile/macros/page">
9b38ba45773b ?berarbeitung MPIWGStaff
dwinter
parents:
diff changeset
4 <body>
9b38ba45773b ?berarbeitung MPIWGStaff
dwinter
parents:
diff changeset
5 <tal:block metal:fill-slot="navsel" tal:define="global menusel string:talks" />
9b38ba45773b ?berarbeitung MPIWGStaff
dwinter
parents:
diff changeset
6
9b38ba45773b ?berarbeitung MPIWGStaff
dwinter
parents:
diff changeset
7 <tal:block metal:fill-slot="body" tal:define="yes_no_list python:'yes\nno'">
170
485bf377913a fix staff editing pages.
casties
parents: 159
diff changeset
8 <form tal:attributes="action string:$root/editTalks" method="post">
37
9b38ba45773b ?berarbeitung MPIWGStaff
dwinter
parents:
diff changeset
9 <input type="hidden" name="key_main" tal:attributes="value python:here.content.key">
9b38ba45773b ?berarbeitung MPIWGStaff
dwinter
parents:
diff changeset
10 <input type="hidden" name="main_fields" value="talks__title">
170
485bf377913a fix staff editing pages.
casties
parents: 159
diff changeset
11 <table tal:define="talks python:here.getTalks(published=False)">
37
9b38ba45773b ?berarbeitung MPIWGStaff
dwinter
parents:
diff changeset
12 <tr>
9b38ba45773b ?berarbeitung MPIWGStaff
dwinter
parents:
diff changeset
13 <th>Date</th>
9b38ba45773b ?berarbeitung MPIWGStaff
dwinter
parents:
diff changeset
14 <th>Title/Place/Link</th>
9b38ba45773b ?berarbeitung MPIWGStaff
dwinter
parents:
diff changeset
15 <th>Priority</th>
9b38ba45773b ?berarbeitung MPIWGStaff
dwinter
parents:
diff changeset
16 <th>Show</th>
9b38ba45773b ?berarbeitung MPIWGStaff
dwinter
parents:
diff changeset
17 </tr>
170
485bf377913a fix staff editing pages.
casties
parents: 159
diff changeset
18 <tr tal:repeat="talk talks">
37
9b38ba45773b ?berarbeitung MPIWGStaff
dwinter
parents:
diff changeset
19 <td valign="top">
170
485bf377913a fix staff editing pages.
casties
parents: 159
diff changeset
20 <input tal:attributes="name python:'talks__date__'+str(talk.oid); value talk/date" size="10" />
37
9b38ba45773b ?berarbeitung MPIWGStaff
dwinter
parents:
diff changeset
21 </td>
9b38ba45773b ?berarbeitung MPIWGStaff
dwinter
parents:
diff changeset
22 <td>
170
485bf377913a fix staff editing pages.
casties
parents: 159
diff changeset
23 <input tal:attributes="name python:'talks__title__'+str(talk.oid); value python:talk.title" size="80" /><br>
485bf377913a fix staff editing pages.
casties
parents: 159
diff changeset
24 <input tal:attributes="name python:'talks__place__'+str(talk.oid); value python:talk.place" size="80" /><br>
485bf377913a fix staff editing pages.
casties
parents: 159
diff changeset
25 <input tal:attributes="name python:'talks__link__'+str(talk.oid); value python:talk.link" size="80" />
37
9b38ba45773b ?berarbeitung MPIWGStaff
dwinter
parents:
diff changeset
26 </td>
9b38ba45773b ?berarbeitung MPIWGStaff
dwinter
parents:
diff changeset
27 <td valign="top">
170
485bf377913a fix staff editing pages.
casties
parents: 159
diff changeset
28 <input tal:attributes="name python:'talks__priority__'+str(talk.oid); value talk/priority" size="3" />
37
9b38ba45773b ?berarbeitung MPIWGStaff
dwinter
parents:
diff changeset
29 </td>
170
485bf377913a fix staff editing pages.
casties
parents: 159
diff changeset
30 <td valign="top" tal:define="name string:talks__published__${talk/oid}; value talk/published;">
159
ee79f6ba8d01 clean up staff editing and some zpt forms.
casties
parents: 100
diff changeset
31 <span metal:use-macro="here/common_template/macros/yesno_input_radio"/>
ee79f6ba8d01 clean up staff editing and some zpt forms.
casties
parents: 100
diff changeset
32 </td>
37
9b38ba45773b ?berarbeitung MPIWGStaff
dwinter
parents:
diff changeset
33 <td>
170
485bf377913a fix staff editing pages.
casties
parents: 159
diff changeset
34 <a tal:attributes="href string:$root/deleteField?table=talks&key=${talk/oid}">delete</a>
37
9b38ba45773b ?berarbeitung MPIWGStaff
dwinter
parents:
diff changeset
35 </td>
9b38ba45773b ?berarbeitung MPIWGStaff
dwinter
parents:
diff changeset
36 </tr>
9b38ba45773b ?berarbeitung MPIWGStaff
dwinter
parents:
diff changeset
37 <tr colspan="4">
170
485bf377913a fix staff editing pages.
casties
parents: 159
diff changeset
38 <th>Add new</th>
37
9b38ba45773b ?berarbeitung MPIWGStaff
dwinter
parents:
diff changeset
39 </tr>
9b38ba45773b ?berarbeitung MPIWGStaff
dwinter
parents:
diff changeset
40 <tr>
9b38ba45773b ?berarbeitung MPIWGStaff
dwinter
parents:
diff changeset
41 <td valign="top"><input tal:attributes="name python:'talks__date__new'" size="10" /></td>
170
485bf377913a fix staff editing pages.
casties
parents: 159
diff changeset
42 <td>
485bf377913a fix staff editing pages.
casties
parents: 159
diff changeset
43 <input tal:attributes="name python:'talks__title__new'" size="80"/> <br/>
485bf377913a fix staff editing pages.
casties
parents: 159
diff changeset
44 <input tal:attributes="name python:'talks__place__new'" size="80" /> <br/>
485bf377913a fix staff editing pages.
casties
parents: 159
diff changeset
45 <input tal:attributes="name python:'talks__link__new'" size="80" />
485bf377913a fix staff editing pages.
casties
parents: 159
diff changeset
46 </td>
485bf377913a fix staff editing pages.
casties
parents: 159
diff changeset
47 <td>
485bf377913a fix staff editing pages.
casties
parents: 159
diff changeset
48 <input tal:attributes="name python:'talks__priority__new'" size="3">
485bf377913a fix staff editing pages.
casties
parents: 159
diff changeset
49 </td>
159
ee79f6ba8d01 clean up staff editing and some zpt forms.
casties
parents: 100
diff changeset
50 <td valign="top" tal:define="name string:talks__published__new; value string:yes;">
170
485bf377913a fix staff editing pages.
casties
parents: 159
diff changeset
51 <span metal:use-macro="here/common_template/macros/yesno_input_radio"/>
159
ee79f6ba8d01 clean up staff editing and some zpt forms.
casties
parents: 100
diff changeset
52 </td>
37
9b38ba45773b ?berarbeitung MPIWGStaff
dwinter
parents:
diff changeset
53 </tr>
9b38ba45773b ?berarbeitung MPIWGStaff
dwinter
parents:
diff changeset
54 </table>
170
485bf377913a fix staff editing pages.
casties
parents: 159
diff changeset
55 <p>
485bf377913a fix staff editing pages.
casties
parents: 159
diff changeset
56 <input type="submit" value="submit"/>
485bf377913a fix staff editing pages.
casties
parents: 159
diff changeset
57 </p>
37
9b38ba45773b ?berarbeitung MPIWGStaff
dwinter
parents:
diff changeset
58 </form>
9b38ba45773b ?berarbeitung MPIWGStaff
dwinter
parents:
diff changeset
59 </tal:block>
9b38ba45773b ?berarbeitung MPIWGStaff
dwinter
parents:
diff changeset
60 </body>
9b38ba45773b ?berarbeitung MPIWGStaff
dwinter
parents:
diff changeset
61 </html>