annotate zpt/staff/edit_talks.zpt @ 217:2598210ada7a

ICS calendar for talks.
author casties
date Mon, 07 Oct 2013 19:45:23 +0200
parents 485bf377913a
children 0babf6e0a454
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
217
2598210ada7a ICS calendar for talks.
casties
parents: 170
diff changeset
7 <tal:block metal:fill-slot="body">
2598210ada7a ICS calendar for talks.
casties
parents: 170
diff changeset
8 <form tal:attributes="action string:$root/editTalks" method="post"
2598210ada7a ICS calendar for talks.
casties
parents: 170
diff changeset
9 tal:define="cal here/getTalksCal">
2598210ada7a ICS calendar for talks.
casties
parents: 170
diff changeset
10
2598210ada7a ICS calendar for talks.
casties
parents: 170
diff changeset
11 <tal:block tal:condition="not:cal">
2598210ada7a ICS calendar for talks.
casties
parents: 170
diff changeset
12 <h3>Enter talk events manually</h3>
2598210ada7a ICS calendar for talks.
casties
parents: 170
diff changeset
13
2598210ada7a ICS calendar for talks.
casties
parents: 170
diff changeset
14 <input type="hidden" name="key_main" tal:attributes="value here/content/key"/>
2598210ada7a ICS calendar for talks.
casties
parents: 170
diff changeset
15 <input type="hidden" name="main_fields" value="talks__title"/>
2598210ada7a ICS calendar for talks.
casties
parents: 170
diff changeset
16 <table tal:define="talks python:here.getTalks(published=False)">
2598210ada7a ICS calendar for talks.
casties
parents: 170
diff changeset
17 <tr>
2598210ada7a ICS calendar for talks.
casties
parents: 170
diff changeset
18 <th>Date</th>
2598210ada7a ICS calendar for talks.
casties
parents: 170
diff changeset
19 <th>Title/Place/Link</th>
2598210ada7a ICS calendar for talks.
casties
parents: 170
diff changeset
20 <th>Priority</th>
2598210ada7a ICS calendar for talks.
casties
parents: 170
diff changeset
21 <th>Show</th>
2598210ada7a ICS calendar for talks.
casties
parents: 170
diff changeset
22 </tr>
2598210ada7a ICS calendar for talks.
casties
parents: 170
diff changeset
23 <tr tal:repeat="talk talks">
2598210ada7a ICS calendar for talks.
casties
parents: 170
diff changeset
24 <td valign="top">
2598210ada7a ICS calendar for talks.
casties
parents: 170
diff changeset
25 <input tal:attributes="name python:'talks__date__'+str(talk.oid); value talk/date" size="10" />
2598210ada7a ICS calendar for talks.
casties
parents: 170
diff changeset
26 </td>
2598210ada7a ICS calendar for talks.
casties
parents: 170
diff changeset
27 <td>
2598210ada7a ICS calendar for talks.
casties
parents: 170
diff changeset
28 <input tal:attributes="name python:'talks__title__'+str(talk.oid); value python:talk.title" size="80" /><br>
2598210ada7a ICS calendar for talks.
casties
parents: 170
diff changeset
29 <input tal:attributes="name python:'talks__place__'+str(talk.oid); value python:talk.place" size="80" /><br>
2598210ada7a ICS calendar for talks.
casties
parents: 170
diff changeset
30 <input tal:attributes="name python:'talks__link__'+str(talk.oid); value python:talk.link" size="80" />
2598210ada7a ICS calendar for talks.
casties
parents: 170
diff changeset
31 </td>
2598210ada7a ICS calendar for talks.
casties
parents: 170
diff changeset
32 <td valign="top">
2598210ada7a ICS calendar for talks.
casties
parents: 170
diff changeset
33 <input tal:attributes="name python:'talks__priority__'+str(talk.oid); value talk/priority" size="3" />
2598210ada7a ICS calendar for talks.
casties
parents: 170
diff changeset
34 </td>
2598210ada7a ICS calendar for talks.
casties
parents: 170
diff changeset
35 <td valign="top" tal:define="name string:talks__published__${talk/oid}; value talk/published;">
2598210ada7a ICS calendar for talks.
casties
parents: 170
diff changeset
36 <span metal:use-macro="here/common_template/macros/yesno_input_radio"/>
2598210ada7a ICS calendar for talks.
casties
parents: 170
diff changeset
37 </td>
2598210ada7a ICS calendar for talks.
casties
parents: 170
diff changeset
38 <td>
2598210ada7a ICS calendar for talks.
casties
parents: 170
diff changeset
39 <a tal:attributes="href string:$root/deleteField?table=talks&key=${talk/oid}">delete</a>
2598210ada7a ICS calendar for talks.
casties
parents: 170
diff changeset
40 </td>
2598210ada7a ICS calendar for talks.
casties
parents: 170
diff changeset
41 </tr>
2598210ada7a ICS calendar for talks.
casties
parents: 170
diff changeset
42 <tr colspan="4">
2598210ada7a ICS calendar for talks.
casties
parents: 170
diff changeset
43 <th>Add new</th>
2598210ada7a ICS calendar for talks.
casties
parents: 170
diff changeset
44 </tr>
2598210ada7a ICS calendar for talks.
casties
parents: 170
diff changeset
45 <tr>
2598210ada7a ICS calendar for talks.
casties
parents: 170
diff changeset
46 <td valign="top"><input tal:attributes="name python:'talks__date__new'" size="10" /></td>
2598210ada7a ICS calendar for talks.
casties
parents: 170
diff changeset
47 <td>
2598210ada7a ICS calendar for talks.
casties
parents: 170
diff changeset
48 <input tal:attributes="name python:'talks__title__new'" size="80"/> <br/>
2598210ada7a ICS calendar for talks.
casties
parents: 170
diff changeset
49 <input tal:attributes="name python:'talks__place__new'" size="80" /> <br/>
2598210ada7a ICS calendar for talks.
casties
parents: 170
diff changeset
50 <input tal:attributes="name python:'talks__link__new'" size="80" />
2598210ada7a ICS calendar for talks.
casties
parents: 170
diff changeset
51 </td>
2598210ada7a ICS calendar for talks.
casties
parents: 170
diff changeset
52 <td>
2598210ada7a ICS calendar for talks.
casties
parents: 170
diff changeset
53 <input tal:attributes="name python:'talks__priority__new'" size="3"/>
2598210ada7a ICS calendar for talks.
casties
parents: 170
diff changeset
54 </td>
2598210ada7a ICS calendar for talks.
casties
parents: 170
diff changeset
55 <td valign="top" tal:define="name string:talks__published__new; value string:yes;">
159
ee79f6ba8d01 clean up staff editing and some zpt forms.
casties
parents: 100
diff changeset
56 <span metal:use-macro="here/common_template/macros/yesno_input_radio"/>
217
2598210ada7a ICS calendar for talks.
casties
parents: 170
diff changeset
57 </td>
2598210ada7a ICS calendar for talks.
casties
parents: 170
diff changeset
58 </tr>
2598210ada7a ICS calendar for talks.
casties
parents: 170
diff changeset
59 </table>
2598210ada7a ICS calendar for talks.
casties
parents: 170
diff changeset
60 </tal:block>
2598210ada7a ICS calendar for talks.
casties
parents: 170
diff changeset
61
2598210ada7a ICS calendar for talks.
casties
parents: 170
diff changeset
62 <h3>Automatic talk events from calendar server</h3>
2598210ada7a ICS calendar for talks.
casties
parents: 170
diff changeset
63 <p>
2598210ada7a ICS calendar for talks.
casties
parents: 170
diff changeset
64 Calendar URL: <input name="ics_url" tal:attributes="value cal/url | nothing" size="80"/> <br/>
2598210ada7a ICS calendar for talks.
casties
parents: 170
diff changeset
65 (public iCalendar ICS calendar format).
2598210ada7a ICS calendar for talks.
casties
parents: 170
diff changeset
66 </p>
2598210ada7a ICS calendar for talks.
casties
parents: 170
diff changeset
67 <p>
2598210ada7a ICS calendar for talks.
casties
parents: 170
diff changeset
68 Remove URL to enter talks manually.
2598210ada7a ICS calendar for talks.
casties
parents: 170
diff changeset
69 </p>
2598210ada7a ICS calendar for talks.
casties
parents: 170
diff changeset
70
170
485bf377913a fix staff editing pages.
casties
parents: 159
diff changeset
71 <p>
485bf377913a fix staff editing pages.
casties
parents: 159
diff changeset
72 <input type="submit" value="submit"/>
485bf377913a fix staff editing pages.
casties
parents: 159
diff changeset
73 </p>
37
9b38ba45773b ?berarbeitung MPIWGStaff
dwinter
parents:
diff changeset
74 </form>
9b38ba45773b ?berarbeitung MPIWGStaff
dwinter
parents:
diff changeset
75 </tal:block>
9b38ba45773b ?berarbeitung MPIWGStaff
dwinter
parents:
diff changeset
76 </body>
9b38ba45773b ?berarbeitung MPIWGStaff
dwinter
parents:
diff changeset
77 </html>