Commit e2f3395e authored by Kevin Deldycke's avatar Kevin Deldycke

Don't render non-editable fields in span.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@9649 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent cdaf25f4
...@@ -91,12 +91,7 @@ MISSING\n ...@@ -91,12 +91,7 @@ MISSING\n
<tal:block metal:use-macro="template/macros/field" />\n <tal:block metal:use-macro="template/macros/field" />\n
</tal:block>\n </tal:block>\n
</label>\n </label>\n
<div class="input"\n <div class="input" tal:content="structure python: html_tuple[1]"/>\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 <span tal:condition="python: field_errors.has_key(field.id)"\n
class="error"\n class="error"\n
tal:content="python: field_errors[field.id].error_text"\n tal:content="python: field_errors[field.id].error_text"\n
......
2006-09-04 Kevin
* Don't render non-editable fields in span.
2006-09-01 Kevin 2006-09-01 Kevin
* Fix hidden developper shortcuts. * Fix hidden developper shortcuts.
* Add support for title _and_ id on groups (see form_render and ERP5XhtmlStyle_getFormGroupTitleAndId comments for details). * Add support for title _and_ id on groups (see form_render and ERP5XhtmlStyle_getFormGroupTitleAndId comments for details).
......
159 160
\ No newline at end of file \ No newline at end of file
1.2.23 1.2.24
\ No newline at end of file \ No newline at end of file
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