Annotation of ECHO_content/zpt/localizeObjects.zpt, revision 1.2

1.1       dwinter     1: <html>
                      2: <head>
                      3:    <meta http-equiv="content-type" content="text/html; charset=utf-8">
                      4: </head>
                      5: <body>
                      6: <h2>Localize Objects</h2>
                      7: <form action="localize" method="post">
                      8: <h3>Title of <tal:block tal:replace="here/getId"/></h3>
                      9: <table>
                     10: <tr><td>&nbsp;</td><td>German</td><td>English</td></tr>
                     11: <tr><td>Title</td><td><input size="50" tal:attributes="value python:here.title" name="title"></td>
                     12: <td><input size="50" tal:attributes="value python:here.locale_en.title" name="en!title"></td></tr>
                     13: <tr><td>Label</td><td><input size="50" tal:attributes="value python:here.label" name="label"></td>
                     14: <td><input size="50" tal:attributes="value python:here.locale_en.label" name="en!label"></td>
                     15: </tr>
                     16: </table>
                     17: <input type="submit" value="submit">
                     18: 
                     19: <tal:block tal:repeat="content python:here.ZopeFind(here,obj_metatypes=['ECHO_link','ECHO_mapText'])">
                     20: <h3 tal:condition="python:content[1].meta_type=='ECHO_mapText'" tal:content="python:content[1].getId()"/>
                     21: <tal:block tal:condition="python:content[1].meta_type=='ECHO_link'" tal:define="global found python:here.ZopeFind(content[1],obj_metatypes=['ECHO_mapText'])">
                     22: <h3 tal:condition="found" tal:content="python:content[1].getId()+'/'+found[0][1].getId()"/>
                     23: </tal:block>
                     24: <table>
                     25: <tr><td>&nbsp;</td><td>German</td><td>English</td></tr>
                     26: <!--<tr><td>Title</td><td><input tal:attributes="value python:content[1].title; name python:content[1].getId()+'!title'"></td>
                     27: <td><input tal:attributes="value python:content[1].locale_en.title; name python:content[1].getId()+'!en!title'"></td></tr>
                     28: <tr><td>Label</td><td><input tal:attributes="value python:content[1].label; name python:content[1].getId()+'!label'"></td>
                     29: <td><input tal:attributes="value python:content[1].locale_en.label; name python:content[1].getId()+'!en!lable'"></td>
                     30: </tr>-->
                     31: 
                     32: <tr tal:condition="python:content[1].meta_type=='ECHO_mapText'">
                     33: <td>Text</td>
1.2     ! dwinter    34: <td><textarea tal:attributes="name python:content[1].getId()+'!text'" cols="50" rows="10" tal:content="python:content[1].document_src()"></textarea></td>
        !            35: <td><textarea tal:attributes="name python:content[1].getId()+'!en!text'" cols="50" rows="10" tal:content="python:content[1].locale_en.document_src()"></textarea></td>
1.1       dwinter    36: </tr>
                     37: <tal:block tal:condition="python:content[1].meta_type=='ECHO_link'">
                     38: <tr tal:condition="found">
                     39: <td>Text</td>
1.2     ! dwinter    40: <td><textarea tal:attributes="name python:content[1].getId()+'!text'"  cols="50" rows="10" tal:content="python:found[0][1].document_src()"></textarea></td>
        !            41: <td><textarea tal:attributes="name python:content[1].getId()+'!en!text'"  cols="50" rows="10" tal:content="python:found[0][1].locale_en.document_src()"></textarea></td>
1.1       dwinter    42: </tr>
                     43: </tal:block>
                     44: </table>
                     45: <input type="submit" value="submit">
                     46: </tal:block>
                     47: </form>
                     48: </body>
                     49: </html>

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>