diff --git a/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/section_form_view.xml b/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/section_form_view.xml index e317f6a0d7e610932f49974484469db95ca6a91b..a37013bc5575fc40e4dca7ce2fbbe2a45bdacc57 100644 --- a/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/section_form_view.xml +++ b/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/section_form_view.xml @@ -54,16 +54,17 @@ <key> <string>_text</string> </key> <value> <string encoding="cdata"><![CDATA[ -<tal:block tal:define="default_layout string:view_master;\n - default_content here/WebSite_getDefaultDocumentValue | nothing;\n - ignore_layout request/ignore_layout | nothing;\n - editable_mode request/editable_mode | nothing;\n - layout_form_id here/getApplicableLayout | nothing;\n - layout_form python:not(layout_form_id) or ignore_layout or getattr(here, layout_form_id, None);\n - layout_id layout_form/pt | default_layout;">\n +<tal:block tal:define="default_layout string: view_master;\n + default_content here/WebSite_getDefaultDocumentValue | nothing;\n + ignore_layout request/ignore_layout | nothing;\n + editable_mode request/editable_mode | nothing;\n + layout_form_id here/getApplicableLayout | nothing;\n + layout_form python: not(layout_form_id) or ignore_layout or getattr(here, layout_form_id, None);\n + layout_id layout_form/pt | default_layout;">\n \n <tal:block metal:use-macro="python: getattr(here, layout_id).macros[\'master\']">\n <tal:block metal:fill-slot="main">\n +\n <tal:block tal:condition="python: (not editable_mode) and (not ignore_layout) and (default_content is not None)">\n <tal:block tal:define="global here python: default_content;\n global form python: here.WebPage_view;\n @@ -75,16 +76,9 @@ </tal:block>\n \n <tal:block tal:condition="python: default_content is None and not editable_mode">\n - <tal:block tal:replace="nothing"><!--\n - Render a special page for news web_sites.\n - --></tal:block>\n - <tal:block tal:condition="python: context.getId().lower() == \'news\'">\n - <tal:block metal:use-macro="python: getattr(here, \'%s_news_list\' % here.WebSite_getSiteValue().getId()).macros[\'master\']"/>\n - </tal:block>\n - <tal:block tal:condition="python: context.getId().lower() != \'news\'">\n - No default page defined.\n - </tal:block>\n + This section contain no document.\n </tal:block>\n +\n </tal:block>\n </tal:block>\n \n