Annotation of ECHO_content/zpt/localizeObjects.zpt, revision 1.3
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> </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.3 ! dwinter 21: <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'])">
1.1 dwinter 22: <h3 tal:condition="found" tal:content="python:content[1].getId()+'/'+found[0][1].getId()"/>
1.3 ! dwinter 23: <h3 tal:condition="not:found" tal:content="python:content[1].getId()"/>
1.1 dwinter 24: </tal:block>
25: <table>
26: <tr><td> </td><td>German</td><td>English</td></tr>
27:
28: <tr tal:condition="python:content[1].meta_type=='ECHO_mapText'">
29: <td>Text</td>
1.2 dwinter 30: <td><textarea tal:attributes="name python:content[1].getId()+'!text'" cols="50" rows="10" tal:content="python:content[1].document_src()"></textarea></td>
31: <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 32: </tr>
1.3 ! dwinter 33: <tal:block tal:condition="python:content[1].meta_type in['ECHO_link','ECHO_externalLink']">
1.1 dwinter 34: <tr tal:condition="found">
35: <td>Text</td>
1.2 dwinter 36: <td><textarea tal:attributes="name python:content[1].getId()+'!text'" cols="50" rows="10" tal:content="python:found[0][1].document_src()"></textarea></td>
37: <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 38: </tr>
! 39: <tr tal:condition="not:found" >
! 40: <td> </td>
! 41: <td colspan="2">
! 42: <strong>This object contains no ECHO_mapText.</strong>
! 43: </td>
1.1 dwinter 44: </tr>
45: </tal:block>
46: </table>
47: <input type="submit" value="submit">
48: </tal:block>
49: </form>
50: </body>
51: </html>
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>