Commit cd3a9d41 authored by Kevin Deldycke's avatar Kevin Deldycke

Move editable_mode setter there to factorize code among themes.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@10307 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent b73344a3
......@@ -105,7 +105,12 @@
<tal:block metal:use-macro="here/global_definitions/macros/http_definitions"/>\n
\n
<!-- Main content rendering -->\n
<tal:block metal:define-slot="erp5_web_template_main_content"/>\n
<!-- Here we force the editable_mode variable to True to let the layout and widgets based on forms be rendered as editable or non-editable according the "editable" property on fields.\n
XXX However this hasa bad side effect: the editable_mode variable in request is force to True and is no longer representative of the web site mode.\n
-->\n
<tal:block tal:define="dummy python: request.set(\'editable_mode\', True)">\n
<tal:block metal:define-slot="erp5_web_template_main_content"/>\n
</tal:block>\n
\n
</form>\n
</body>\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