Mercurial > hg > MPIWGWeb
view zpt/staff/edit_additionalLinks.zpt @ 159:ee79f6ba8d01
clean up staff editing and some zpt forms.
author | casties |
---|---|
date | Thu, 06 Jun 2013 15:34:20 +0200 |
parents | 9b38ba45773b |
children | 485bf377913a |
line wrap: on
line source
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html metal:use-macro="here/mainEditFile/macros/page"> <body> <tal:block metal:fill-slot="navsel" tal:define="global menusel string:additionalLink" /> <p>You can add links to documents or project websites you want to provide and are relevant for presenting your work and research interests</p> <tal:block metal:fill-slot="body" tal:define="yes_no_list python:'yes\nno'"> <form action="" method="post"> <input type="hidden" name="main_fields" value="additionalLink__title"> <table tal:define="links python:here.getAdditionalLinks()"> <tal:x tal:repeat="link links"> <tr class="fliesstext"> <td>Text over Link</td> <td><input tal:attributes="name python:'additionalLink__title__'+str(link.oid); value python:link.title" size="80" /> </td> </tr> <tr> <td>Url</td> <td><input tal:attributes="name python:'additionalLink__link__'+str(link.oid); value python:link.link" size="80" /></td> </tr> <tr> <td valign="top">Priority <input tal:attributes="name python:'additionalLink__priority__'+str(link.oid); value python:link.priority" size="3" /> </td> <td valign="top">Publish <span tal:define="name string:additionalLink__published__${link/oid}; value link/published;"> <tal:block metal:use-macro="here/common_template/macros/yesno_input_radio"/> </span> <a tal:attributes="href python:'deleteField?table=additionalLink&oid=%s'%link.oid">delete this link</a> </td> </tr> <tr> <td colspan="2"><hr/></td> </tr> </tal:x> <tr > <td colspan="2"><b>Add new link</b></td> </tr> <tr> <td>Text over Link</td> <td><input tal:attributes="name python:'additionalLink__title__new'" size="80"/></td> </tr> <tr> <td>Url</td> <td><input tal:attributes="name python:'additionalLink__link__new'" size="80" /></td> </tr> <tr> <td>Priority <input tal:attributes="name python:'additionalLink__priority__new'" size="3"></td> <td valign="top">Publish <span tal:define="name string:additionalLink__published__new; value string:yes;"> <tal:block metal:use-macro="here/common_template/macros/yesno_input_radio"/> </span> </td> </tr> </table> <input type="submit" value="submit"> </form> <p>Please contact the IT Group <a href="mailto:itgroup@mpiwg-berlin.mpg.de">itgroup@mpiwg-berlin.mpg.de</a>, if you intend to link to documents not available in the net and if you want to publish these.</p> </tal:block> </body> </html>