Mercurial > hg > MPIWGWeb
view zpt/editAdditionalLinks.zpt @ 4:1a895905f7ca
feature teaser works now.
author | casties |
---|---|
date | Mon, 11 Feb 2013 20:14:47 +0100 |
parents | bca61e893fcc |
children |
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="changeResearch" method="post"> <input type="hidden" name="key_main" tal:attributes="value python:here.decode(person.key)"> <input type="hidden" name="main_fields" value="additionalLink__title"> <table tal:define="founds2 python:here.ZSQLInlineSearch(_table='additionalLink',key_main=person.key)" > <tal:x tal:repeat="found2 python:here.sortPriority(founds2)"> <tr class="fliesstext"> <td>Text over Link</td> <td><input tal:attributes="name python:'additionalLink__title__'+str(found2.oid); value python:here.decode(found2.title)" size="80" /> </td> </tr> <tr> <td>Url</td> <td><input tal:attributes="name python:'additionalLink__link__'+str(found2.oid); value python:here.decode(found2.link)" size="80" /></td> </tr> <tr> <td valign="top">Priority <input tal:attributes="name python:'additionalLink__priority__'+str(found2.oid); value python:here.decode(found2.priority)" size="3" /> </td> <td valign="top">Publish <tal:x tal:content="structure python:here.ZSQLSelectionFromCRList( 'additionalLink__published__'+str(found2.oid), yes_no_list, boxType='radio', checked=found2.published)" /> <a tal:attributes="href python:'deleteField?table=additionalLink&oid=%s'%found2.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 <tal:x tal:content="structure python:here.ZSQLSelectionFromCRList( 'additionalLink__published__new', yes_no_list, boxType='radio', checked='yes')" /> </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>