Mercurial > hg > MPIWGWeb
annotate zpt/staff/edit_additionalLinks.zpt @ 284:1a103b073c72 default tip
make favicon url host and schema relative.
author | casties |
---|---|
date | Thu, 25 Jun 2015 17:44:57 +0200 |
parents | 6d6076e28430 |
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:additionalLink" /> | |
6 | |
7 <tal:block metal:fill-slot="body" tal:define="yes_no_list python:'yes\nno'"> | |
170 | 8 <p>You can add links to documents or project websites you want to provide and are relevant for |
9 presenting your work and research interests</p> | |
10 | |
11 <form tal:attributes="action string:$root/editAdditionalLinks" method="post"> | |
12 | |
13 <input type="hidden" name="main_fields" value="additionalLink__title"> | |
14 <table tal:define="links python:here.getAdditionalLinks()"> | |
15 <tal:x tal:repeat="link links"> | |
208
6d6076e28430
fix deleteField for additionalLink (still ugly though)
casties
parents:
170
diff
changeset
|
16 <tr> |
37 | 17 <td>Text over Link</td> |
159 | 18 <td><input tal:attributes="name python:'additionalLink__title__'+str(link.oid); |
19 value python:link.title" size="80" /> </td> | |
37 | 20 </tr> |
21 <tr> | |
22 <td>Url</td> | |
159 | 23 <td><input tal:attributes="name python:'additionalLink__link__'+str(link.oid); |
24 value python:link.link" size="80" /></td> | |
37 | 25 </tr> |
26 <tr> | |
159 | 27 <td valign="top">Priority <input tal:attributes="name python:'additionalLink__priority__'+str(link.oid); |
28 value python:link.priority" | |
37 | 29 size="3" /> |
30 </td> | |
31 <td valign="top">Publish | |
159 | 32 <span tal:define="name string:additionalLink__published__${link/oid}; value link/published;"> |
33 <tal:block metal:use-macro="here/common_template/macros/yesno_input_radio"/> | |
34 </span> | |
208
6d6076e28430
fix deleteField for additionalLink (still ugly though)
casties
parents:
170
diff
changeset
|
35 <a tal:attributes="href string:$root/deleteField?table=additionallink&oid=${link/oid}">delete this link</a> |
37 | 36 </td> |
37 </tr> | |
38 <tr> | |
39 <td colspan="2"><hr/></td> | |
40 </tr> | |
41 </tal:x> | |
42 <tr > | |
43 <td colspan="2"><b>Add new link</b></td> | |
44 </tr> | |
45 <tr> | |
46 <td>Text over Link</td> | |
47 <td><input tal:attributes="name python:'additionalLink__title__new'" size="80"/></td> | |
48 </tr> | |
49 <tr> | |
50 <td>Url</td> | |
51 <td><input tal:attributes="name python:'additionalLink__link__new'" size="80" /></td> | |
52 </tr> | |
53 <tr> | |
54 <td>Priority <input tal:attributes="name python:'additionalLink__priority__new'" size="3"></td> | |
55 <td valign="top">Publish | |
159 | 56 <span tal:define="name string:additionalLink__published__new; value string:yes;"> |
57 <tal:block metal:use-macro="here/common_template/macros/yesno_input_radio"/> | |
58 </span> | |
59 </td> | |
37 | 60 </tr> |
61 </table> | |
62 <input type="submit" value="submit"> | |
63 | |
64 </form> | |
65 <p>Please contact the IT Group <a href="mailto:itgroup@mpiwg-berlin.mpg.de">itgroup@mpiwg-berlin.mpg.de</a>, if you intend | |
66 to link to documents not available in the net and if you want to publish these.</p> | |
67 </tal:block> | |
68 </body> | |
69 </html> |