[Erp5-report] r9576 - /erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem...
nobody at svn.erp5.org
nobody at svn.erp5.org
Thu Aug 31 11:41:16 CEST 2006
Author: kevin
Date: Thu Aug 31 11:41:12 2006
New Revision: 9576
URL: http://svn.erp5.org?rev=9576&view=rev
Log:
Render non editable field in a span.
Modified:
erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/field_render.xml
Modified: erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/field_render.xml
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/field_render.xml?rev=9576&r1=9575&r2=9576&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/field_render.xml (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/field_render.xml Thu Aug 31 11:41:12 2006
@@ -92,11 +92,15 @@
</tal:block>\n
</label>\n
<div class="input"\n
- tal:content="structure python: html_tuple[1]"></div>\n
+ tal:define="editable python: field.get_value(\'editable\');\n
+ html_field python: html_tuple[1]">\n
+ <tal:block tal:condition="python: editable" tal:content="structure python: html_field"/>\n
+ <span tal:condition="python: not editable" tal:content="structure python: html_field"/>\n
+ </div>\n
<span tal:condition="python: field_errors.has_key(field.id)"\n
class="error"\n
tal:content="python: field_errors[field.id].error_text"\n
- i18n:translate="" i18n:domain="ui"></span>\n
+ i18n:translate="" i18n:domain="ui"/>\n
</div>\n
</tal:block>\n
</tal:block>\n
More information about the Erp5-report
mailing list