Mercurial > hg > MPIWGFMManager
view zpt/editMPIWGManager.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 bgcolor="#eeeeaa"> <!-- 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 default Fields</h1> <form action="manage_editMPIWGFMManager" method="post"> <table border="1"> <tr> <th>Id</th> <th>Fieldname English;<br /> Fieldname German</th> <th>Default content English</th> <th>Default content German</th> </tr> <!-- User defined fields --> <tr tal:repeat="property here/getDefaultProperties"> <tal:block tal:define="index repeat/property/index; info_en python:(property[0],property[2]); info_de python:(property[1],property[3]); property_id python: property[5]"> <th><input type="text" tal:attributes="name python: 'property_%s_id'%index; value property_id" /></th> <td><input type="text" tal:attributes="name python: 'property_%s_en_key'%index; value python:info_en[0]" /> <br /> <input type="text" tal:attributes="name python: 'property_%s_de_key'%index; value python:info_de[0]" /></td> <td><textarea cols="48" rows="3" tal:attributes="name python: 'property_%s_en_value'%index;" tal:content="python:info_en[1]"></textarea></td> <td><textarea cols="48" rows="3" tal:attributes="name python: 'property_%s_de_value'%index;" tal:content="python:info_de[1]"></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> <div> <br/> <br/> Add <input type="text" value="0" name="add_new" /> new fields.<br/> <br/> <input type="submit" value="Update" /> </div> </form> </body> </html>