Mercurial > hg > MPIWGFMManager
view zpt/editMPIWGItem.pt @ 0:957bcf42f206
initial
author | dwinter |
---|---|
date | Thu, 02 May 2013 08:33:53 +0200 |
parents | |
children |
line wrap: on
line source
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="expires" content="0"> <meta http-equiv="cache-control" content="no-cache"> <meta http-equiv="pragma" content="no-cache"> </head> <body> <!-- ZOPE management tabs --> <div tal:define="manage_tabs_message options/manage_tabs_message | nothing" tal:replace="structure here/manage_tabs">Tabs</div> <!-- end of ZOPE management tabs --> <h1>Edit MPIWG Item</h1> <p>Empty fields are not shown in the presentation.</p> <p>Please fill fields in both languages!</p> <form action="manage_editMPIWGItem" method="post"> <h3>Images</h3> <table> <!-- list all images --> <tr tal:repeat="image python:here.getImageIds()"> <td><a tal:attributes="href image"><img tal:attributes="src image" width="200" /></a></td> <td><span tal:content="image"/></td> <td><input type="checkbox" tal:attributes="name python:'delimg__%s'%image" />Delete</td> </tr> <!-- adding new images ... --> <tr> <td><a href="manage_addImageForm">Add new image...</a></td> </tr> </table> <h3>Files</h3> <table> <!-- list all files --> <tr tal:repeat="file python:here.getFileIds()"> <tal:block tal:define="index repeat/file/index"> <td><a tal:attributes="href file"> <span tal:content="file" /> </a></td> <td><input type="checkbox" tal:attributes="name python:'delfil__%s'%file" />Delete</td> </tal:block> </tr> <!-- adding new files ... --> <tr> <td><a href="manage_addFileForm">Add new File...</a></td> </tr> </table> <h3>Info</h3> <table> <tr> <th></th> <th>English</th> <th>German</th> </tr> <tr> <th>Title:</th> <td><input type="text" name="title_en" size="48" tal:attributes="value python:here.getInfo('title',lang='EN')" /></td> <td><input type="text" name="title_de" size="48" tal:attributes="value python:here.getInfo('title',lang='DE')" /></td> </tr> <tr> <th>Datum: <br /> <small> (Date for sorting* in the form DD.MM.YYYY) </small></th> <td colspan="2"> <center> <input type="text" name="date" size="10" tal:attributes="value python:here.getDate()" /> </center> </td> </tr> <tr> <td colspan="5"> <hr /> </td> </tr> </table> <table> <tr> <th>ID (field id)</th> <th>Field name English** ,<br /> Field name German </th> <th>Entry English</th> <th>Entry German</th> </tr> <!-- Selbst definierbare Felder --> <tr tal:repeat="property here/getPropertyKeys"> <tal:block tal:define="index repeat/property/index; info_en python:here.getInfo(property,'EN'); info_de python:here.getInfo(property,'DE'); info_en_caption python:here.getCaption(property,'EN'); info_de_caption python:here.getCaption(property,'DE'); "> <th><input type="text" tal:attributes="name python:'property_%s_id'%index; value property" /></th> <td><input type="text" tal:attributes="name python:'property_%s_en_key'%index; value python:info_en_caption" /> <br /> <input type="text" tal:attributes="name python:'property_%s_de_key'%index; value python:info_de_caption" /></td> <td><textarea cols="48" rows="5" tal:attributes="name python:'property_%s_en_value'%index;" tal:content="python:info_en"></textarea></td> <td><textarea cols="48" rows="5" tal:attributes="name python:'property_%s_de_value'%index;" tal:content="python:info_de"></textarea></td> <td><input type="checkbox" tal:attributes="name python:'del__property_%s'%index" />Delete <br /> weight: <input type="text" tal:attributes="name python:'property_%s_weight'%index; value python:here.getWeight(index)" /></td> </tal:block> </tr> </table> <center> <br /> <br /> Add <input type="text" value="0" name="add_new" /> new fields.<br /> <br /> <input type="submit" value="Update" /> </center> <hr /> </form> Commonly used tags: <br /> <b> <b>bold</b></b> <br /> <i> <i>italic</i></i> <br /> Line break: <br/> <br /> <a href="link/to/page.html"> link </a> - or mail-link: <a href="mailto:adress@abc.de"> mail-link </a> <hr /> <p> *: Dieses Datum ist nur ein Sortierdatum, d.h. das Datum, das benutzt wird, wenn eine Liste von Events/News nach datum sortiert werden soll.<br /> Es ist jedoch z.T. sinnvoll, ein neues Feld anzulegen, das 'Date'/'Datum' heisst, wenn man mehr als nur das Datum im Format TT.MM.JJJJ angeben moechte, und evtl. Uhrzeiten, Zeiträume oder ähnliches angeben will. </p> <small> <a tal:attributes="href python:context.absolute_url()+'/../manage_main'"> Zurück zum ZMI </a> </small> </body> </html>