Commit 8003c7a4 authored by Vincent Pelletier's avatar Vincent Pelletier

Transmit defined render_prefix, or None if it was not defined.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@22004 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent f59a59be
......@@ -58,12 +58,13 @@
<tal:block tal:condition="python: field.meta_type != \'HiddenStringField\'"\n
tal:define="field_id field/id;\n
value python: request.get(field_id, None);\n
render_prefix render_prefix | nothing;\n
field_errors python: request.get(\'field_errors\', {});\n
field_has_error python: field_errors.has_key(field_id);\n
global form_id form_id | form/id | nothing;\n
field_description field/Field_getDescription;\n
is_web_mode is_web_mode | nothing">\n
<div tal:define="html_render python: field.render_htmlgrid(value, request)"\n
<div tal:define="html_render python: field.render_htmlgrid(value, request, render_prefix=render_prefix)"\n
tal:attributes="title field_description;\n
class python: \' \'.join([x for x in [\'field\', field.is_required() and \'required\' or None, field_has_error and \'error\' or None, field.get_value(\'css_class\') or None] if x is not None])"\n
i18n:attributes="title" i18n:domain="ui">\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