Diff for /ECHO_content/zpt/localizeObjects.zpt between versions 1.2 and 1.3

version 1.2, 2005/07/21 13:29:09 version 1.3, 2005/08/19 07:53:16
Line 16 Line 16
 </table>  </table>
 <input type="submit" value="submit">  <input type="submit" value="submit">
   
 <tal:block tal:repeat="content python:here.ZopeFind(here,obj_metatypes=['ECHO_link','ECHO_mapText'])">  <tal:block tal:repeat="content python:here.ZopeFind(here,obj_metatypes=['ECHO_link','ECHO_mapText','ECHO_externalLink'])">
 <h3 tal:condition="python:content[1].meta_type=='ECHO_mapText'" tal:content="python:content[1].getId()"/>  <h3 tal:condition="python:content[1].meta_type=='ECHO_mapText'" tal:content="python:content[1].getId()"/>
 <tal:block tal:condition="python:content[1].meta_type=='ECHO_link'" tal:define="global found python:here.ZopeFind(content[1],obj_metatypes=['ECHO_mapText'])">  <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'])">
 <h3 tal:condition="found" tal:content="python:content[1].getId()+'/'+found[0][1].getId()"/>  <h3 tal:condition="found" tal:content="python:content[1].getId()+'/'+found[0][1].getId()"/>
   <h3 tal:condition="not:found" tal:content="python:content[1].getId()"/>
 </tal:block>  </tal:block>
 <table>  <table>
 <tr><td>&nbsp;</td><td>German</td><td>English</td></tr>  <tr><td>&nbsp;</td><td>German</td><td>English</td></tr>
 <!--<tr><td>Title</td><td><input tal:attributes="value python:content[1].title; name python:content[1].getId()+'!title'"></td>  
 <td><input tal:attributes="value python:content[1].locale_en.title; name python:content[1].getId()+'!en!title'"></td></tr>  
 <tr><td>Label</td><td><input tal:attributes="value python:content[1].label; name python:content[1].getId()+'!label'"></td>  
 <td><input tal:attributes="value python:content[1].locale_en.label; name python:content[1].getId()+'!en!lable'"></td>  
 </tr>-->  
   
 <tr tal:condition="python:content[1].meta_type=='ECHO_mapText'">  <tr tal:condition="python:content[1].meta_type=='ECHO_mapText'">
 <td>Text</td>  <td>Text</td>
 <td><textarea tal:attributes="name python:content[1].getId()+'!text'" cols="50" rows="10" tal:content="python:content[1].document_src()"></textarea></td>  <td><textarea tal:attributes="name python:content[1].getId()+'!text'" cols="50" rows="10" tal:content="python:content[1].document_src()"></textarea></td>
 <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>  <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>
 </tr>  </tr>
 <tal:block tal:condition="python:content[1].meta_type=='ECHO_link'">  <tal:block tal:condition="python:content[1].meta_type in['ECHO_link','ECHO_externalLink']">
 <tr tal:condition="found">  <tr tal:condition="found">
 <td>Text</td>  <td>Text</td>
 <td><textarea tal:attributes="name python:content[1].getId()+'!text'"  cols="50" rows="10" tal:content="python:found[0][1].document_src()"></textarea></td>  <td><textarea tal:attributes="name python:content[1].getId()+'!text'"  cols="50" rows="10" tal:content="python:found[0][1].document_src()"></textarea></td>
 <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>  <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>
 </tr>  </tr>
   <tr tal:condition="not:found" >
   <td>&nbsp;</td>
   <td colspan="2">
   <strong>This object contains no ECHO_mapText.</strong>
   </td>
   </tr>
 </tal:block>  </tal:block>
 </table>  </table>
 <input type="submit" value="submit">  <input type="submit" value="submit">

Removed from v.1.2  
changed lines
  Added in v.1.3


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