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

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: 
1.3       dwinter    19: <tal:block tal:repeat="content python:here.ZopeFind(here,obj_metatypes=['ECHO_link','ECHO_mapText','ECHO_externalLink'])">
1.1       dwinter    20: <h3 tal:condition="python:content[1].meta_type=='ECHO_mapText'" tal:content="python:content[1].getId()"/>
1.4     ! dwinter    21: 
        !            22: <tal:block tal:condition="python:content[1].meta_type in ['ECHO_link','ECHO_externalLink']" tal:define="global found python:here.ZopeFind(content[1],obj_metatypes=['ECHO_mapText'])">
        !            23: 
1.1       dwinter    24: <h3 tal:condition="found" tal:content="python:content[1].getId()+'/'+found[0][1].getId()"/>
1.3       dwinter    25: <h3 tal:condition="not:found" tal:content="python:content[1].getId()"/>
1.1       dwinter    26: </tal:block>
                     27: <table>
                     28: <tr><td>&nbsp;</td><td>German</td><td>English</td></tr>
                     29: 
                     30: <tr tal:condition="python:content[1].meta_type=='ECHO_mapText'">
                     31: <td>Text</td>
1.2       dwinter    32: <td><textarea tal:attributes="name python:content[1].getId()+'!text'" cols="50" rows="10" tal:content="python:content[1].document_src()"></textarea></td>
                     33: <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    34: </tr>
1.4     ! dwinter    35: 
        !            36: <tal:block tal:condition="python:content[1].meta_type in ['ECHO_link','ECHO_externalLink']">
        !            37: 
1.1       dwinter    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.3       dwinter    42: </tr>
                     43: <tr tal:condition="not:found" >
                     44: <td>&nbsp;</td>
                     45: <td colspan="2">
                     46: <strong>This object contains no ECHO_mapText.</strong>
                     47: </td>
1.1       dwinter    48: </tr>
                     49: </tal:block>
                     50: </table>
                     51: <input type="submit" value="submit">
                     52: </tal:block>
                     53: </form>
                     54: </body>
                     55: </html>

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