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,86 +37,85 @@ ...@@ -37,86 +37,85 @@
<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 <tal:block metal:define-macro="master">\n
<head>\n <tal:block tal:define="\n
<link rel="top" title="" href="/" />\n website python: here.getWebSiteValue();\n
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>\n portal_path python: website.absolute_url();\n
<meta http-equiv="cache-control" content="no-cache" />\n section python: here.getWebSectionValue();\n
<meta http-equiv="expires" content="3600" />\n section_url python: section.absolute_url();\n
<meta name="revisit-after" content="2 days" />\n editable python: request.get(\'editable_mode\', 0);\n
<meta name="robots" content="index, follow" />\n current_main_section python: here.WebSite_getMainSection();\n
<meta name="generator" content="ERP5 - Copyright (C) 2001 - 2009. All rights reserved." />\n list_mode list_mode | nothing;\n
<meta name="author" content="Designed by Robert Jung (http://design.dreikelvin.de/) / Modified: Fabien Morin (fabien@nexedi.com)" />\n dialog_mode dialog_mode | nothing;\n
<meta name="distribution" content="global" />\n has_no_layout python: layout_form is None;\n
<meta name="description" content="ERP5 KM - ERP5.com Knowledge Base" />\n dummy python: request.set(\'dialog_mode\', dialog_mode);\n
<link rel="stylesheet" type="text/css" href="css/layout.css" />\n dummy python: request.set(\'list_mode\', list_mode);\n
<link rel="stylesheet" type="text/css" href="css/color.css" />\n aggregate python: has_no_layout or layout_form.Form_getGroupList([\'right\', \'bottom\', \'menu\', \'path\', \'splash\', \'headline\', \'footer\']);\n
<link rel="stylesheet" type="text/css" href="css/pulldown.css" />\n aggregate python: ((aggregate is not has_no_layout) and dict(aggregate)) or {};\n
<link rel="stylesheet" type="text/css" href="css/type.css" />\n right_area python:aggregate.get(\'right\', []);\n
<link rel="shortcut icon" href="new_km/favicon.ico" type="image/x-icon" />\n menu_area python:aggregate.get(\'menu\', []);\n
<link rel="alternate" title="RSS" href="/" type="application/rss+xml" />\n path_area python:aggregate.get(\'path\', []);\n
<title>ERP5 KM - ERP5.com Knowledge Base | ERP5</title>\n splash_area python:aggregate.get(\'splash\', []);\n
</head>\n headline_area python:aggregate.get(\'headline\', []);\n
\n footer_area python:aggregate.get(\'footer\', []);\n
\n bottom_area python:aggregate.get(\'bottom\', []);\n
\n right_list python:len(right_area) and layout_form.get_fields_in_group(right_area[0][\'goid\']);\n
<body>\n is_right_area_empty python:right_list == 0 or len(right_list) == 0;\n
<tal:block metal:define-macro="master">\n is_front_layout python: layout_form is not None and layout_form.id == \'erp5_km_minimal_front_layout\';\n
<tal:block tal:define="website here/getWebSiteValue;\n subject_list python:here.getSubjectList() or here.getLayoutProperty(\'subject_list\') or [];\n
enctype string:multipart/form-data;\n description python:here.getDescription() or here.getLayoutProperty(\'description\') or \'\';\n
portal_path python:website.absolute_url();\n global header_title python:here == website and website.getTranslatedTitleOrId() or \'%s | %s\' % (here.getTranslatedTitleOrId(), website.getTranslatedTitleOrId());\n
section here/getWebSectionValue;\n global css_list_template python:[\n
section_url section/absolute_url;\n portal_path + \'/erp5_listbox.css\',\n
current_main_section here/WebSite_getMainSection;\n portal_path + \'/erp5_web_toolbar.css\',\n
editable request/editable_mode | python: 0;\n portal_path + \'/erp5_knowledge_box.css\',\n
list_mode list_mode | nothing;\n portal_path + \'/km_css/km.css\',\n
dialog_mode dialog_mode | nothing;\n portal_path + \'/km_css/gadget.css\',\n
has_no_layout python: layout_form is None;\n portal_path + \'/km_css/km_listbox.css\',\n
dummy python: request.set(\'dialog_mode\', dialog_mode);\n portal_path + \'/km_custom.css\'\n
dummy python: request.set(\'list_mode\', list_mode);\n ];\n
aggregate python: has_no_layout or layout_form.Form_getGroupList(\n global js_list python:[\n
[\'right\', \'bottom\', \'menu\', \'path\', \'splash\', \'headline\', \'footer\',]);\n portal_path + \'/km_js/erp5_km.js\',\n
aggregate python: ((aggregate is not has_no_layout) and dict(aggregate)) or {};\n ];\n
right_area python:aggregate.get(\'right\', []);\n global_definitions_macros here/global_definitions/macros;\n
menu_area python:aggregate.get(\'menu\', []);\n ">\n
path_area python:aggregate.get(\'path\', []);\n <tal:block metal:use-macro="global_definitions_macros/header_definitions" />\n
splash_area python:aggregate.get(\'splash\', []);\n <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">\n
headline_area python:aggregate.get(\'headline\', []);\n <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">\n
footer_area python:aggregate.get(\'footer\', []);\n <head>\n
bottom_area python:aggregate.get(\'bottom\', []);\n <tal:block metal:use-macro="global_definitions_macros/header_boilerplate" />\n
right_list python:len(right_area) and layout_form.get_fields_in_group(right_area[0][\'goid\']);\n <tal:block metal:use-macro="global_definitions_macros/render_css_js" />\n
is_right_area_empty python:right_list == 0 or len(right_list) == 0;\n <meta name="robots" content="index, follow" />\n
is_front_layout python: layout_form is not None and\n </head>\n
layout_form.id == \'erp5_km_minimal_front_layout\';\n <body tal:attributes="class body_css_class|nothing">\n
subject_list python:here.getSubjectList() or here.getLayoutProperty(\'subject_list\') or [];\n <form\n
description python:here.getDescription() or here.getLayoutProperty(\'description\') or \'\';\n id="main_form"\n
global header_title python:here == website and website.getTranslatedTitleOrId() or \'%s | %s\' % (here.getTranslatedTitleOrId(), website.getTranslatedTitleOrId());\n class="main_form"\n
global css_list_template python:[\n onsubmit="changed=false; return true"\n
\'%s/erp5_listbox.css\' % portal_path,\n enctype="multipart/form-data"\n
\'%s/erp5_web_toolbar.css\' % portal_path,\n tal:attributes="\n
\'%s/erp5_knowledge_box.css\' % portal_path,\n action url;\n
\'%s/km_css/km.css\' % portal_path,\n method python:str(path(\'form/method | string:post\')).lower();\n
\'%s/km_css/gadget.css\' % portal_path,\n "\n
\'%s/km_css/km_listbox.css\' % portal_path,\n >\n
\'%s/km_custom.css\' % portal_path,];\n <fieldset id="hidden_fieldset" class="hidden_fieldset">\n
global js_list python:[\n <input tal:condition="form_action | nothing"\n
\'%s/km_js/erp5_km.js\' % portal_path,\n id="hidden_button" class="hidden_button" type="submit" value="dummy"\n
]">\n tal:attributes="name string:${form_action}:method" />\n
<tal:block metal:use-macro="here/template_erp5_xhtml_style/macros/master">\n <tal:block metal:use-macro="global_definitions_macros/http_definitions" />\n
<tal:block metal:fill-slot="layout">\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
<div style=\'width: 640px; margin: 0 auto; text-align: left; padding: 0; overflow: hidden; color: black;\'>\n <div style=\'width: 640px; margin: 0 auto; text-align: left; padding: 0; overflow: hidden; color: black;\'>\n
<div style=\'width: 75px; float: left;\'><img src=\'http://www.ie6nomore.com/files/theme/ie6nomore-warning.jpg\' alt=\'Warning!\'/></div>\n <div style=\'width: 75px; float: left;\'><img src=\'http://www.ie6nomore.com/files/theme/ie6nomore-warning.jpg\' alt=\'Warning!\'/></div>\n
...@@ -132,30 +131,26 @@ ...@@ -132,30 +131,26 @@
</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
<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
</div>\n </div>\n
<!-- Satus Messages, Breadcrumb, Language Box -->\n <!-- Satus Messages, Breadcrumb, Language Box -->\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: [(\'path\', path_area)]">\n <tal:block tal:repeat="aggregate python: [(\'path\', path_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
</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,17 +158,14 @@ ...@@ -163,17 +158,14 @@
<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
and len(layout_form.get_fields_in_group(splash_area[0][\'goid\'])) ">\n and len(layout_form.get_fields_in_group(splash_area[0][\'goid\'])) ">\n
<tal:block tal:repeat="aggregate python: [(\'splash\', splash_area)]">\n <tal:block tal:repeat="aggregate python: [(\'splash\', splash_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
\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
...@@ -190,7 +182,7 @@ ...@@ -190,7 +182,7 @@
<!-- Layout form rendering -->\n <!-- Layout form rendering -->\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: [(\'bottom\', bottom_area)]">\n <tal:block tal:repeat="aggregate python: [(\'bottom\', bottom_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
</tal:block>\n </tal:block>\n
...@@ -201,7 +193,7 @@ ...@@ -201,7 +193,7 @@
<!-- Layout form rendering -->\n <!-- Layout form rendering -->\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: [(\'right\', right_area)]">\n <tal:block tal:repeat="aggregate python: [(\'right\', right_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
</tal:block>\n </tal:block>\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 <tal:block tal:condition="python: layout_form is not None">\n
\n <tal:block tal:repeat="aggregate python: [(\'footer\', footer_area)]">\n
<tal:block tal:condition="python: layout_form is not None">\n <tal:block metal:use-macro="here/aggregate_render/macros/aggregate_render"/>\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>\n
</tal:block>\n </tal:block>\n
\n </tal:block>\n
</tal:block>\n </form>\n
</tal:block>\n </body>\n
</tal:block>\n </html>\n
</tal:block>\n </tal:block>\n
</body>\n </tal:block>\n
</html> </tal:block>
]]></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