Commit bb3f67e9 authored by Kevin Deldycke's avatar Kevin Deldycke

Render non editable field in a span.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@9576 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 8e295a0b
......@@ -92,11 +92,15 @@ MISSING\n
</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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment