Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Xueyun Qian
erp5
Commits
ddcb30ee
Commit
ddcb30ee
authored
Jul 13, 2015
by
Vincent Pelletier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_web_minimal_theme: Do not depend on template_erp5_xhtml_style.
That template is only to be used for ERP5-style UI.
parent
55b54a09
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
108 additions
and
80 deletions
+108
-80
bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web_minimal_theme/template_erp5_web.xml
...portal_skins/erp5_web_minimal_theme/template_erp5_web.xml
+108
-80
No files found.
bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web_minimal_theme/template_erp5_web.xml
View file @
ddcb30ee
...
@@ -36,92 +36,120 @@
...
@@ -36,92 +36,120 @@
<key>
<string>
_text
</string>
</key>
<key>
<string>
_text
</string>
</key>
<value>
<unicode
encoding=
"cdata"
>
<![CDATA[
<value>
<unicode
encoding=
"cdata"
>
<![CDATA[
<tal:block tal:replace="nothing"\n
<tal:block\n
xmlns:tal="http://xml.zope.org/namespaces/tal"\n
xmlns:tal="http://xml.zope.org/namespaces/tal"\n
xmlns:metal="http://xml.zope.org/namespaces/metal"\n
xmlns:metal="http://xml.zope.org/namespaces/metal"\n
xmlns:i18n="http://xml.zope.org/namespaces/i18n">
\n
xmlns:i18n="http://xml.zope.org/namespaces/i18n">
\n
<!--\n
<tal:block
tal:replace=
"nothing"
>
\n
Copyright (c) 2006 Nexedi SARL and Contributors. All Rights Reserved.\n
<!--\n
Vincent Pelletier <vincent@nexedi.com>\n
Copyright (c) 2006-2015 Nexedi SARL and Contributors. All Rights Reserved.\n
Christophe Dumez <christophe@nexedi.com>\n
Vincent Pelletier <vincent@nexedi.com>\n
Christophe Dumez <christophe@nexedi.com>\n
\n
\n
This program is Free Software; you can redistribute it and/or\n
This program is Free Software; you can redistribute it and/or\n
modify it under the terms of the GNU General Public License\n
modify it under the terms of the GNU General Public License\n
as published by the Free Software Foundation; either version 2\n
as published by the Free Software Foundation; either version 2\n
of the License, or (at your option) any later version.\n
of the License, or (at your option) any later version.\n
\n
\n
This program is distributed in the hope that it will be useful,\n
This program is distributed in the hope that it will be useful,\n
but WITHOUT ANY WARRANTY; without even the implied warranty of\n
but WITHOUT ANY WARRANTY; without even the implied warranty of\n
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n
GNU General Public License for more details.\n
GNU General Public License for more details.\n
\n
\n
You should have received a copy of the GNU General Public License\n
You should have received a copy of the GNU General Public License\n
along with this program; if not, write to the Free Software\n
along with this program; if not, write to the Free Software\n
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n
-->
\n
-->
\n
</tal:block>
\n
</tal:block>
\n
\n
<tal:block
metal:define-macro=
"master"
>
\n
<tal:block
metal:define-macro=
"master"
>
\n
<tal:block
tal:define=
"\n
<tal:block
tal:define=
"website here/getWebSiteValue;\n
website python:here.getWebSiteValue();\n
portal_path python:website.absolute_url();\n
portal_path python:website.absolute_url();\n
list_mode list_mode | nothing;\n
list_mode list_mode | nothing;\n
editable request/editable_mode | python: 0; \n
editable request/editable_mode | python: 0;\n
global css_list_template python:[\'%s/erp5_web.css\' % portal_path,\n
global css_list_template python:[\n
\'%s/erp5_web_%scontent.css\' % (portal_path, editable and \'editable_\' or \'\'),\n
portal_path + \'/erp5_web.css\',\n
\'%s/erp5_web_admin_toolbox.css\' % portal_path,\n
portal_path + \'/erp5_web_%scontent.css\' % (editable and \'editable_\' or \'\'),\n
\'%s/template_erp5_web.css\' % portal_path,];\n
portal_path + \'/erp5_web_admin_toolbox.css\',\n
global js_list python:[]"
>
\n
portal_path + \'/template_erp5_web.css\',\n
<tal:block
metal:use-macro=
"here/template_erp5_xhtml_style/macros/master"
>
\n
];\n
<tal:block
metal:fill-slot=
"layout"
\n
global js_list python:[];\n
tal:define=
"dummy python: request.set(\'editable_mode\', True)"
>
\n
portal_status_message python: request.get(\'portal_status_message\');\n
<div
id=
"main_content"
tal:attributes=
"class python:(list_mode and \'list_mode\') or \'view_mode\'"
>
\n
global_definitions_macros here/global_definitions/macros;\n
<tal:block
tal:condition=
"request/portal_status_message | nothing"
>
\n
"
>
\n
<!-- XXX Why no portal message displayed there ?\n
<tal:block
metal:use-macro=
"global_definitions_macros/header_definitions"
/>
\n
Normally a message should be displayed when saving an object through web interface... -->
\n
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
\n
<div
tal:content=
"request/portal_status_message | nothing"
id=
"transition_message"
/>
\n
<html
xmlns=
"http://www.w3.org/1999/xhtml"
xml:lang=
"en"
lang=
"en"
>
\n
</tal:block>
\n
<head>
\n
<tal:block
metal:define-slot=
"main"
/>
\n
<tal:block
metal:use-macro=
"global_definitions_macros/header_boilerplate"
/>
\n
</div>
\n
<tal:block
metal:use-macro=
"global_definitions_macros/render_css_js"
/>
\n
\n
<meta
name=
"robots"
content=
"index, follow"
/>
\n
<!-- Layout form rendering -->
\n
</head>
\n
<tal:block
tal:condition=
"python: layout_form is not None"
>
\n
<body
tal:attributes=
"class body_css_class|nothing"
>
\n
\n
<form
\n
<tal:block
tal:replace=
"nothing"
>
\n
id=
"main_form"
\n
\n
class=
"main_form"
\n
<!--<tal:block tal:define="template python: here.developper_shortcut_render">\n
onsubmit=
"changed=false; return true"
\n
<tal:block metal:use-macro="template/macros/form"/>\n
enctype=
"multipart/form-data"
\n
</tal:block>-->
\n
tal:attributes=
"\n
\n
action url;\n
<!-- Here we force the editable_mode variable to True to let the layout and widgets\n
method python:str(path(\'form/method | string:post\')).lower();\n
based on forms be rendered as editable or non-editable according the "editable"\n
"
\n
property on fields.\n
>
\n
\n
<fieldset
id=
"hidden_fieldset"
class=
"hidden_fieldset"
>
\n
However this has bad side effect: the editable_mode variable in request is\n
<input
\n
forced to True and is no longer representative of the web site mode.\n
tal:condition=
"form_action | nothing"
\n
id=
"hidden_button"
\n
class=
"hidden_button"
\n
type=
"submit"
\n
value=
"dummy"
\n
tal:attributes=
"name string:${form_action}:method"
\n
/>
\n
<tal:block
metal:use-macro=
"global_definitions_macros/http_definitions"
/>
\n
</fieldset>
\n
<tal:block
tal:define=
"dummy python: request.set(\'editable_mode\', True)"
>
\n
<div
id=
"main_content"
tal:attributes=
"class python:(list_mode and \'list_mode\') or \'view_mode\'"
>
\n
<div
tal:condition=
"python: portal_status_message"
tal:content=
"portal_status_message"
id=
"transition_message"
/>
\n
<tal:block
metal:define-slot=
"main"
/>
\n
</div>
\n
<tal:block
tal:condition=
"python: layout_form is not None"
>
\n
<tal:block
tal:replace=
"nothing"
>
\n
<!--<tal:block tal:define="template python: here.developper_shortcut_render">\n
<tal:block metal:use-macro="template/macros/form"/>\n
</tal:block>-->
\n
<!-- Here we force the editable_mode variable to True to let the layout and widgets\n
based on forms be rendered as editable or non-editable according the "editable"\n
property on fields.\n
\n
\n
We also set some REQUEST variables which will be needed by Widgets.\n
However this has bad side effect: the editable_mode variable in request is\n
-->
\n
forced to True and is no longer representative of the web site mode.\n
</tal:block>
\n
\n
\n
<tal:block
tal:repeat=
"aggregate python: layout_form.Form_getGroupList([\'header\', \'left\', \'right\', \'footer\'])"
\n
We also set some REQUEST variables which will be needed by Widgets.\n
tal:define=
"dummy python: request.set(\'editable_mode\', True);\n
-->
\n
dialog_mode dialog_mode | nothing;\n
</tal:block>
\n
dummy python: request.set(\'dialog_mode\', dialog_mode);\n
<tal:block
\n
dummy python: request.set(\'list_mode\', list_mode);\n
tal:repeat=
"aggregate python: layout_form.Form_getGroupList([\'header\', \'left\', \'right\', \'footer\'])"
\n
dummy python: request.set(\'http_parameters\', http_parameters);\n
tal:define=
"\n
dummy python: request.set(\'actions\', actions);\n
dummy python: request.set(\'editable_mode\', True);\n
dummy python: request.set(\'current_web_section\',\n
dialog_mode dialog_mode | nothing;\n
request.get(\'current_web_section\', here.getWebSectionValue()));\n
dummy python: request.set(\'dialog_mode\', dialog_mode);\n
dummy python: request.set(\'current_web_document\',\n
dummy python: request.set(\'list_mode\', list_mode);\n
request.get(\'current_web_document\', here));\n
dummy python: request.set(\'http_parameters\', http_parameters);\n
dummy python: request.set(\'is_web_section_default_document\',\n
dummy python: request.set(\'actions\', actions);\n
request.get(\'is_web_section_default_document\', 0));"
>
\n
dummy python: request.set(\'current_web_section\', request.get(\'current_web_section\', here.getWebSectionValue()));\n
<tal:block
metal:use-macro=
"here/aggregate_render/macros/aggregate_render"
/>
\n
dummy python: request.set(\'current_web_document\', request.get(\'current_web_document\', here));\n
</tal:block>
\n
dummy python: request.set(\'is_web_section_default_document\', request.get(\'is_web_section_default_document\', 0));\n
</tal:block>
\n
"
\n
</tal:block>
\t\n
>
\n
<tal:block
metal:use-macro=
"here/aggregate_render/macros/aggregate_render"
/>
\n
</tal:block>
\n
</tal:block>
\n
</tal:block>
\n
</form>
\n
</body>
\n
</html>
\n
</tal:block>
\n
</tal:block>
\n
</tal:block>
\n
</tal:block>
\n
</tal:block>
</tal:block>
]]>
</unicode>
</value>
]]>
</unicode>
</value>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment