37
|
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
|
2 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
|
3 <html metal:use-macro="here/mainEditFile/macros/page">
|
|
4 <body>
|
|
5 <tal:block metal:fill-slot="navsel" tal:define="global menusel string:teaching" />
|
|
6
|
159
|
7 <tal:block metal:fill-slot="body">
|
170
|
8 <form tal:attributes="action string:$root/editTeaching" method="post">
|
37
|
9 <input type="hidden" name="key_main" tal:attributes="value python:here.content.key">
|
|
10 <input type="hidden" name="main_fields" value="teaching__title">
|
170
|
11 <table tal:define="teachings python:here.getTeaching(published=False)">
|
37
|
12 <tr>
|
|
13 <th>Date</th>
|
|
14 <th>Title/Place/Link</th>
|
|
15 <th>Priority</th>
|
|
16 <th>Show</th>
|
|
17 </tr>
|
170
|
18 <tr class="fliesstext" tal:repeat="teaching teachings">
|
|
19 <td valign="top">
|
|
20 <input tal:attributes="name python:'teaching__date__'+str(teaching.oid); value python:teaching.date" size="10" />
|
|
21 </td>
|
|
22
|
|
23 <td>
|
|
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(teaching.oid); value python:teaching.place" size="80" /> <br/>
|
|
26 <input tal:attributes="name python:'teaching__link__'+str(teaching.oid); value python:teaching.link" size="80" />
|
37
|
27 </td>
|
|
28
|
170
|
29 <td valign="top">
|
|
30 <input tal:attributes="name python:'teaching__priority__'+str(teaching.oid); value teaching/priority" size="3" />
|
|
31 </td>
|
|
32 <td valign="top" tal:define="name string:teaching__published__${teaching/oid}; value teaching/published;">
|
159
|
33 <span metal:use-macro="here/common_template/macros/yesno_input_radio"/>
|
|
34 </td>
|
170
|
35 <td><a tal:attributes="href string:$root/deleteField?table=teaching&oid=${teaching/oid}">delete</a></td>
|
37
|
36 </tr>
|
|
37 <tr colspan="4">
|
170
|
38 <th>Add new</th>
|
37
|
39 </tr>
|
|
40 <tr>
|
170
|
41 <td valign="top">
|
|
42 <input tal:attributes="name python:'teaching__date__new'" size="10" />
|
|
43 </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>
|
37
|
49 <td><input tal:attributes="name python:'teaching__priority__new'" size="3"></td>
|
159
|
50 <td valign="top" tal:define="name string:teaching__published__new; value string:yes;">
|
|
51 <span metal:use-macro="here/common_template/macros/yesno_input_radio"/>
|
|
52 </td>
|
37
|
53 </tr>
|
|
54 </table>
|
170
|
55 <p>
|
|
56 <input type="submit" value="submit"/>
|
|
57 </p>
|
37
|
58
|
|
59 </form>
|
|
60 </tal:block>
|
|
61 </body>
|
|
62 </html>
|