Commit 55b54a09 authored by Vincent Pelletier's avatar Vincent Pelletier

erp5_km_theme: Do not depend on template_erp5_xhtml_style.

That template is only to be used for ERP5-style UI.
parent 2651d738
...@@ -37,56 +37,30 @@ ...@@ -37,56 +37,30 @@
<value> <unicode encoding="cdata"><![CDATA[ <value> <unicode encoding="cdata"><![CDATA[
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">\n <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">\n
<html xmlns="http://www.w3.org/1999/xhtml" \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
xml:lang="fr" lang="fr">\n >\n
\n
<!-- Version: dreikelvin CSS Framework 3.5 -->\n <!-- Version: dreikelvin CSS Framework 3.5 -->\n
<!-- Type: Design with sidebar -->\n <!-- Type: Design with sidebar -->\n
<!-- Date: July 24, 2009 -->\n <!-- Date: July 24, 2009 -->\n
<!-- Design: http://design.dreikelvin.de/ -->\n <!-- Design: http://design.dreikelvin.de/ -->\n
<!-- License: Author & Copyright: Robert Jung 2008 -->\n <!-- License: Author & Copyright: Robert Jung 2008 -->\n
\n
<head>\n
<link rel="top" title="" href="/" />\n
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>\n
<meta http-equiv="cache-control" content="no-cache" />\n
<meta http-equiv="expires" content="3600" />\n
<meta name="revisit-after" content="2 days" />\n
<meta name="robots" content="index, follow" />\n
<meta name="generator" content="ERP5 - Copyright (C) 2001 - 2009. All rights reserved." />\n
<meta name="author" content="Designed by Robert Jung (http://design.dreikelvin.de/) / Modified: Fabien Morin (fabien@nexedi.com)" />\n
<meta name="distribution" content="global" />\n
<meta name="description" content="ERP5 KM - ERP5.com Knowledge Base" />\n
<link rel="stylesheet" type="text/css" href="css/layout.css" />\n
<link rel="stylesheet" type="text/css" href="css/color.css" />\n
<link rel="stylesheet" type="text/css" href="css/pulldown.css" />\n
<link rel="stylesheet" type="text/css" href="css/type.css" />\n
<link rel="shortcut icon" href="new_km/favicon.ico" type="image/x-icon" />\n
<link rel="alternate" title="RSS" href="/" type="application/rss+xml" />\n
<title>ERP5 KM - ERP5.com Knowledge Base | ERP5</title>\n
</head>\n
\n
\n
\n
<body>\n
<tal:block metal:define-macro="master">\n <tal:block metal:define-macro="master">\n
<tal:block tal:define="website here/getWebSiteValue;\n <tal:block tal:define="\n
enctype string:multipart/form-data;\n website python: here.getWebSiteValue();\n
portal_path python:website.absolute_url();\n portal_path python: website.absolute_url();\n
section here/getWebSectionValue;\n section python: here.getWebSectionValue();\n
section_url section/absolute_url;\n section_url python: section.absolute_url();\n
current_main_section here/WebSite_getMainSection;\n editable python: request.get(\'editable_mode\', 0);\n
editable request/editable_mode | python: 0;\n current_main_section python: here.WebSite_getMainSection();\n
list_mode list_mode | nothing;\n list_mode list_mode | nothing;\n
dialog_mode dialog_mode | nothing;\n dialog_mode dialog_mode | nothing;\n
has_no_layout python: layout_form is None;\n has_no_layout python: layout_form is None;\n
dummy python: request.set(\'dialog_mode\', dialog_mode);\n dummy python: request.set(\'dialog_mode\', dialog_mode);\n
dummy python: request.set(\'list_mode\', list_mode);\n dummy python: request.set(\'list_mode\', list_mode);\n
aggregate python: has_no_layout or layout_form.Form_getGroupList(\n aggregate python: has_no_layout or layout_form.Form_getGroupList([\'right\', \'bottom\', \'menu\', \'path\', \'splash\', \'headline\', \'footer\']);\n
[\'right\', \'bottom\', \'menu\', \'path\', \'splash\', \'headline\', \'footer\',]);\n
aggregate python: ((aggregate is not has_no_layout) and dict(aggregate)) or {};\n aggregate python: ((aggregate is not has_no_layout) and dict(aggregate)) or {};\n
right_area python:aggregate.get(\'right\', []);\n right_area python:aggregate.get(\'right\', []);\n
menu_area python:aggregate.get(\'menu\', []);\n menu_area python:aggregate.get(\'menu\', []);\n
...@@ -97,24 +71,49 @@ ...@@ -97,24 +71,49 @@
bottom_area python:aggregate.get(\'bottom\', []);\n bottom_area python:aggregate.get(\'bottom\', []);\n
right_list python:len(right_area) and layout_form.get_fields_in_group(right_area[0][\'goid\']);\n right_list python:len(right_area) and layout_form.get_fields_in_group(right_area[0][\'goid\']);\n
is_right_area_empty python:right_list == 0 or len(right_list) == 0;\n is_right_area_empty python:right_list == 0 or len(right_list) == 0;\n
is_front_layout python: layout_form is not None and\n is_front_layout python: layout_form is not None and layout_form.id == \'erp5_km_minimal_front_layout\';\n
layout_form.id == \'erp5_km_minimal_front_layout\';\n
subject_list python:here.getSubjectList() or here.getLayoutProperty(\'subject_list\') or [];\n subject_list python:here.getSubjectList() or here.getLayoutProperty(\'subject_list\') or [];\n
description python:here.getDescription() or here.getLayoutProperty(\'description\') or \'\';\n description python:here.getDescription() or here.getLayoutProperty(\'description\') or \'\';\n
global header_title python:here == website and website.getTranslatedTitleOrId() or \'%s | %s\' % (here.getTranslatedTitleOrId(), website.getTranslatedTitleOrId());\n global header_title python:here == website and website.getTranslatedTitleOrId() or \'%s | %s\' % (here.getTranslatedTitleOrId(), website.getTranslatedTitleOrId());\n
global css_list_template python:[\n global css_list_template python:[\n
\'%s/erp5_listbox.css\' % portal_path,\n portal_path + \'/erp5_listbox.css\',\n
\'%s/erp5_web_toolbar.css\' % portal_path,\n portal_path + \'/erp5_web_toolbar.css\',\n
\'%s/erp5_knowledge_box.css\' % portal_path,\n portal_path + \'/erp5_knowledge_box.css\',\n
\'%s/km_css/km.css\' % portal_path,\n portal_path + \'/km_css/km.css\',\n
\'%s/km_css/gadget.css\' % portal_path,\n portal_path + \'/km_css/gadget.css\',\n
\'%s/km_css/km_listbox.css\' % portal_path,\n portal_path + \'/km_css/km_listbox.css\',\n
\'%s/km_custom.css\' % portal_path,];\n portal_path + \'/km_custom.css\'\n
];\n
global js_list python:[\n global js_list python:[\n
\'%s/km_js/erp5_km.js\' % portal_path,\n portal_path + \'/km_js/erp5_km.js\',\n
]">\n ];\n
<tal:block metal:use-macro="here/template_erp5_xhtml_style/macros/master">\n global_definitions_macros here/global_definitions/macros;\n
<tal:block metal:fill-slot="layout">\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 tal:condition="form_action | nothing"\n
id="hidden_button" class="hidden_button" type="submit" value="dummy"\n
tal:attributes="name string:${form_action}:method" />\n
<tal:block metal:use-macro="global_definitions_macros/http_definitions" />\n
</fieldset>\n
<tal:block metal:use-macro="here/aggregate_render/macros/populate_request"/>\n <tal:block metal:use-macro="here/aggregate_render/macros/populate_request"/>\n
<!--[if lt IE 7]>\n <!--[if lt IE 7]>\n
<div style=\'border: 1px solid #F7941D; background: #FEEFDA; text-align: center; clear: both; height: 75px; position: relative;\'>\n <div style=\'border: 1px solid #F7941D; background: #FEEFDA; text-align: center; clear: both; height: 75px; position: relative;\'>\n
...@@ -132,15 +131,12 @@ ...@@ -132,15 +131,12 @@
</div>\n </div>\n
</div>\n </div>\n
<![endif]-->\n <![endif]-->\n
\n
<div id="mainwrapper">\n <div id="mainwrapper">\n
\n
<!-- HEADER -->\n <!-- HEADER -->\n
<div id="header">\n <div id="header">\n
<!--index here//-->\n <!--index here//-->\n
<h1 id="index"><a href="/" title="ERP5" name="top">ERP5</a></h1>\n <h1 id="index"><a href="/" title="ERP5" name="top">ERP5</a></h1>\n
<!--index here//-->\n <!--index here//-->\n
\n
<div id="menu" tal:define="dummy python: request.set(\'editable_mode\', True)">\n <div id="menu" tal:define="dummy python: request.set(\'editable_mode\', True)">\n
<tal:block tal:condition="python: layout_form is not None">\n <tal:block tal:condition="python: layout_form is not None">\n
<tal:block tal:repeat="aggregate python: [(\'menu\', menu_area)]">\n <tal:block tal:repeat="aggregate python: [(\'menu\', menu_area)]">\n
...@@ -155,7 +151,6 @@ ...@@ -155,7 +151,6 @@
</tal:block>\n </tal:block>\n
</tal:block>\n </tal:block>\n
</div>\n </div>\n
\n
<div id="center" class="center_fluid" tal:define="dummy python: request.set(\'editable_mode\', True)">\n <div id="center" class="center_fluid" tal:define="dummy python: request.set(\'editable_mode\', True)">\n
<!-- Headline Box -->\n <!-- Headline Box -->\n
<tal:block tal:condition="python: layout_form is not None">\n <tal:block tal:condition="python: layout_form is not None">\n
...@@ -163,7 +158,6 @@ ...@@ -163,7 +158,6 @@
<tal:block metal:use-macro="here/aggregate_render/macros/aggregate_render"/>\n <tal:block metal:use-macro="here/aggregate_render/macros/aggregate_render"/>\n
</tal:block>\n </tal:block>\n
</tal:block>\n </tal:block>\n
\n
<!-- Splash Box -->\n <!-- Splash Box -->\n
<tal:block tal:condition="python: layout_form is not None\n <tal:block tal:condition="python: layout_form is not None\n
and len(splash_area)\n and len(splash_area)\n
...@@ -172,8 +166,6 @@ ...@@ -172,8 +166,6 @@
<tal:block metal:use-macro="here/aggregate_render/macros/aggregate_render"/>\n <tal:block metal:use-macro="here/aggregate_render/macros/aggregate_render"/>\n
</tal:block>\n </tal:block>\n
</tal:block>\n </tal:block>\n
\n
\n
<!-- Layout form rendering -->\n <!-- Layout form rendering -->\n
<div id="km_left" \n <div id="km_left" \n
tal:attributes="class python:\'alone\' * is_right_area_empty;\n tal:attributes="class python:\'alone\' * is_right_area_empty;\n
...@@ -209,20 +201,17 @@ ...@@ -209,20 +201,17 @@
<!-- Top Bar: navigation and search -->\n <!-- Top Bar: navigation and search -->\n
<!-- Layout form rendering -->\n <!-- Layout form rendering -->\n
</div>\n </div>\n
\n
\n
<tal:block tal:condition="python: layout_form is not None">\n <tal:block tal:condition="python: layout_form is not None">\n
<tal:block tal:repeat="aggregate python: [(\'footer\', footer_area)]">\n <tal:block tal:repeat="aggregate python: [(\'footer\', footer_area)]">\n
<tal:block metal:use-macro="here/aggregate_render/macros/aggregate_render"/>\n <tal:block metal:use-macro="here/aggregate_render/macros/aggregate_render"/>\n
</tal:block>\n </tal:block>\n
</tal:block>\n </tal:block>\n
\n </form>\n
</tal:block>\n </body>\n
</tal:block>\n </html>\n
</tal:block>\n </tal:block>\n
</tal:block>\n </tal:block>\n
</body>\n </tal:block>
</html>
]]></unicode> </value> ]]></unicode> </value>
</item> </item>
......
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