Commit a4c280a8 authored by Vincent Pelletier's avatar Vincent Pelletier

Add a fallback definition of is_web_mode. This fixes documentation_view page template.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@13990 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent e0ab70bf
...@@ -85,7 +85,8 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n ...@@ -85,7 +85,8 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n
field_errors python: request.get(\'field_errors\', {});\n field_errors python: request.get(\'field_errors\', {});\n
field_has_error python: field_errors.has_key(field_id);\n field_has_error python: field_errors.has_key(field_id);\n
global form_id form_id | python: form.id;\n global form_id form_id | python: form.id;\n
field_description python: here.Base_getFieldDescription(form_id=form_id, field=field)">\n field_description python: here.Base_getFieldDescription(field=field);\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)"\n
tal:attributes="title field_description;\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 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
......
359 363
\ 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