Mercurial > hg > MPIWGWeb
annotate zpt/staff/edit_teaching.zpt @ 284:1a103b073c72 default tip
make favicon url host and schema relative.
author | casties |
---|---|
date | Thu, 25 Jun 2015 17:44:57 +0200 |
parents | 980794794bb5 |
children |
rev | line source |
---|---|
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"> |
243
980794794bb5
added preferences for number of publications, talks, and teachings on profile page.
casties
parents:
170
diff
changeset
|
9 <input type="hidden" name="key_main" tal:attributes="value python:here.content.key"/> |
980794794bb5
added preferences for number of publications, talks, and teachings on profile page.
casties
parents:
170
diff
changeset
|
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> |
243
980794794bb5
added preferences for number of publications, talks, and teachings on profile page.
casties
parents:
170
diff
changeset
|
56 Number of items on profile page: <input name="teachings_num" size="2" tal:attributes="value python:here.content.teachings_num or 5"/> |
980794794bb5
added preferences for number of publications, talks, and teachings on profile page.
casties
parents:
170
diff
changeset
|
57 </p> |
980794794bb5
added preferences for number of publications, talks, and teachings on profile page.
casties
parents:
170
diff
changeset
|
58 <p> |
170 | 59 <input type="submit" value="submit"/> |
60 </p> | |
37 | 61 |
62 </form> | |
63 </tal:block> | |
64 </body> | |
65 </html> |