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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Titouan Soulard
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
Show 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,62 +36,87 @@
<key>
<string>
_text
</string>
</key>
<value>
<unicode
encoding=
"cdata"
>
<![CDATA[
<tal:block
tal:replace="nothing"
\n
<tal:block\n
xmlns:tal="http://xml.zope.org/namespaces/tal"\n
xmlns:metal="http://xml.zope.org/namespaces/metal"\n
xmlns:i18n="http://xml.zope.org/namespaces/i18n">
\n
<!--\n
Copyright (c) 2006 Nexedi SARL and Contributors. All Rights Reserved.\n
<tal:block
tal:replace=
"nothing"
>
\n
<!--\n
Copyright (c) 2006-2015 Nexedi SARL and Contributors. All Rights Reserved.\n
Vincent Pelletier <vincent@nexedi.com>\n
Christophe Dumez <christophe@nexedi.com>\n
\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
as published by the Free Software Foundation; either version 2\n
of the License, or (at your option) any later version.\n
\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
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n
GNU General Public License for more details.\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
as published by the Free Software Foundation; either version 2\n
of the License, or (at your option) any later version.\n
\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
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n
-->
\n
</tal:block>
\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
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n
GNU General Public License for more details.\n
\n
<tal:block
metal:define-macro=
"master"
>
\n
<tal:block
tal:define=
"website here/getWebSiteValue;\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
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n
-->
\n
</tal:block>
\n
<tal:block
metal:define-macro=
"master"
>
\n
<tal:block
tal:define=
"\n
website python:here.getWebSiteValue();\n
portal_path python:website.absolute_url();\n
list_mode list_mode | nothing;\n
editable request/editable_mode | python: 0; \n
global css_list_template python:[\'%s/erp5_web.css\' % portal_path,\n
\'%s/erp5_web_%scontent.css\' % (portal_path, editable and \'editable_\' or \'\'),\n
\'%s/erp5_web_admin_toolbox.css\' % portal_path,\n
\'%s/template_erp5_web.css\' % portal_path,];\n
global js_list python:[]"
>
\n
<tal:block
metal:use-macro=
"here/template_erp5_xhtml_style/macros/master"
>
\n
<tal:block
metal:fill-slot=
"layout"
\n
tal:define=
"dummy python: request.set(\'editable_mode\', True)"
>
\n
editable request/editable_mode | python: 0;\n
global css_list_template python:[\n
portal_path + \'/erp5_web.css\',\n
portal_path + \'/erp5_web_%scontent.css\' % (editable and \'editable_\' or \'\'),\n
portal_path + \'/erp5_web_admin_toolbox.css\',\n
portal_path + \'/template_erp5_web.css\',\n
];\n
global js_list python:[];\n
portal_status_message python: request.get(\'portal_status_message\');\n
global_definitions_macros here/global_definitions/macros;\n
"
>
\n
<tal:block
metal:use-macro=
"global_definitions_macros/header_definitions"
/>
\n
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
\n
<html
xmlns=
"http://www.w3.org/1999/xhtml"
xml:lang=
"en"
lang=
"en"
>
\n
<head>
\n
<tal:block
metal:use-macro=
"global_definitions_macros/header_boilerplate"
/>
\n
<tal:block
metal:use-macro=
"global_definitions_macros/render_css_js"
/>
\n
<meta
name=
"robots"
content=
"index, follow"
/>
\n
</head>
\n
<body
tal:attributes=
"class body_css_class|nothing"
>
\n
<form
\n
id=
"main_form"
\n
class=
"main_form"
\n
onsubmit=
"changed=false; return true"
\n
enctype=
"multipart/form-data"
\n
tal:attributes=
"\n
action url;\n
method python:str(path(\'form/method | string:post\')).lower();\n
"
\n
>
\n
<fieldset
id=
"hidden_fieldset"
class=
"hidden_fieldset"
>
\n
<input
\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
<tal:block
tal:condition=
"request/portal_status_message | nothing"
>
\n
<!-- XXX Why no portal message displayed there ?\n
Normally a message should be displayed when saving an object through web interface... -->
\n
<div
tal:content=
"request/portal_status_message | nothing"
id=
"transition_message"
/>
\n
</tal:block>
\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
\n
<!-- Layout form rendering -->
\n
<tal:block
tal:condition=
"python: layout_form is not None"
>
\n
\n
<tal:block
tal:replace=
"nothing"
>
\n
\n
<!--<tal:block tal:define="template python: here.developper_shortcut_render">\n
<tal:block metal:use-macro="template/macros/form"/>\n
</tal:block>-->
\n
\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
...
...
@@ -102,26 +127,29 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n
We also set some REQUEST variables which will be needed by Widgets.\n
-->
\n
</tal:block>
\n
\n
<tal:block
tal:repeat=
"aggregate python: layout_form.Form_getGroupList([\'header\', \'left\', \'right\', \'footer\'])"
\n
tal:define=
"dummy python: request.set(\'editable_mode\', True);\n
<tal:block
\n
tal:repeat=
"aggregate python: layout_form.Form_getGroupList([\'header\', \'left\', \'right\', \'footer\'])"
\n
tal:define=
"\n
dummy python: request.set(\'editable_mode\', True);\n
dialog_mode dialog_mode | nothing;\n
dummy python: request.set(\'dialog_mode\', dialog_mode);\n
dummy python: request.set(\'list_mode\', list_mode);\n
dummy python: request.set(\'http_parameters\', http_parameters);\n
dummy python: request.set(\'actions\', actions);\n
dummy python: request.set(\'current_web_section\',\n
request.get(\'current_web_section\', here.getWebSectionValue()));\n
dummy python: request.set(\'current_web_document\',\n
request.get(\'current_web_document\', here));\n
dummy python: request.set(\'is_web_section_default_document\',\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
dummy python: request.set(\'current_web_document\', request.get(\'current_web_document\', here));\n
dummy python: request.set(\'is_web_section_default_document\', request.get(\'is_web_section_default_document\', 0));\n
"
\n
>
\n
<tal:block
metal:use-macro=
"here/aggregate_render/macros/aggregate_render"
/>
\n
</tal:block>
\n
</tal:block>
\n
</tal:block>
\t\n
</tal:block>
\n
</tal:block>
\n
</form>
\n
</body>
\n
</html>
\n
</tal:block>
\n
</tal:block>
\n
</tal:block>
]]>
</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