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 @@
<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
<html xmlns="http://www.w3.org/1999/xhtml" \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
xml:lang="fr" lang="fr">\n
\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
<!-- Version: dreikelvin CSS Framework 3.5 -->\n
<!-- Type: Design with sidebar -->\n
<!-- Date: July 24, 2009 -->\n
<!-- Design: http://design.dreikelvin.de/ -->\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 tal:define="website here/getWebSiteValue;\n
enctype string:multipart/form-data;\n
portal_path python:website.absolute_url();\n
section here/getWebSectionValue;\n
section_url section/absolute_url;\n
current_main_section here/WebSite_getMainSection;\n
editable request/editable_mode | python: 0;\n
list_mode list_mode | nothing;\n
dialog_mode dialog_mode | nothing;\n
has_no_layout python: layout_form is None;\n
dummy python: request.set(\'dialog_mode\', dialog_mode);\n
dummy python: request.set(\'list_mode\', list_mode);\n
aggregate python: has_no_layout or layout_form.Form_getGroupList(\n
[\'right\', \'bottom\', \'menu\', \'path\', \'splash\', \'headline\', \'footer\',]);\n
aggregate python: ((aggregate is not has_no_layout) and dict(aggregate)) or {};\n
right_area python:aggregate.get(\'right\', []);\n
menu_area python:aggregate.get(\'menu\', []);\n
path_area python:aggregate.get(\'path\', []);\n
splash_area python:aggregate.get(\'splash\', []);\n
headline_area python:aggregate.get(\'headline\', []);\n
footer_area python:aggregate.get(\'footer\', []);\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
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
layout_form.id == \'erp5_km_minimal_front_layout\';\n
subject_list python:here.getSubjectList() or here.getLayoutProperty(\'subject_list\') 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 css_list_template python:[\n
\'%s/erp5_listbox.css\' % portal_path,\n
\'%s/erp5_web_toolbar.css\' % portal_path,\n
\'%s/erp5_knowledge_box.css\' % portal_path,\n
\'%s/km_css/km.css\' % portal_path,\n
\'%s/km_css/gadget.css\' % portal_path,\n
\'%s/km_css/km_listbox.css\' % portal_path,\n
\'%s/km_custom.css\' % portal_path,];\n
global js_list python:[\n
\'%s/km_js/erp5_km.js\' % portal_path,\n
]">\n
<tal:block metal:use-macro="here/template_erp5_xhtml_style/macros/master">\n
<tal:block metal:fill-slot="layout">\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
section python: here.getWebSectionValue();\n
section_url python: section.absolute_url();\n
editable python: request.get(\'editable_mode\', 0);\n
current_main_section python: here.WebSite_getMainSection();\n
list_mode list_mode | nothing;\n
dialog_mode dialog_mode | nothing;\n
has_no_layout python: layout_form is None;\n
dummy python: request.set(\'dialog_mode\', dialog_mode);\n
dummy python: request.set(\'list_mode\', list_mode);\n
aggregate python: has_no_layout or layout_form.Form_getGroupList([\'right\', \'bottom\', \'menu\', \'path\', \'splash\', \'headline\', \'footer\']);\n
aggregate python: ((aggregate is not has_no_layout) and dict(aggregate)) or {};\n
right_area python:aggregate.get(\'right\', []);\n
menu_area python:aggregate.get(\'menu\', []);\n
path_area python:aggregate.get(\'path\', []);\n
splash_area python:aggregate.get(\'splash\', []);\n
headline_area python:aggregate.get(\'headline\', []);\n
footer_area python:aggregate.get(\'footer\', []);\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
is_right_area_empty python:right_list == 0 or len(right_list) == 0;\n
is_front_layout python: layout_form is not None and layout_form.id == \'erp5_km_minimal_front_layout\';\n
subject_list python:here.getSubjectList() or here.getLayoutProperty(\'subject_list\') 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 css_list_template python:[\n
portal_path + \'/erp5_listbox.css\',\n
portal_path + \'/erp5_web_toolbar.css\',\n
portal_path + \'/erp5_knowledge_box.css\',\n
portal_path + \'/km_css/km.css\',\n
portal_path + \'/km_css/gadget.css\',\n
portal_path + \'/km_css/km_listbox.css\',\n
portal_path + \'/km_custom.css\'\n
];\n
global js_list python:[\n
portal_path + \'/km_js/erp5_km.js\',\n
];\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 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
<!--[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=\'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
......@@ -132,30 +131,26 @@
</div>\n
</div>\n
<![endif]-->\n
\n
<div id="mainwrapper">\n
\n
<!-- HEADER -->\n
<div id="header">\n
<!--index here//-->\n
<h1 id="index"><a href="/" title="ERP5" name="top">ERP5</a></h1>\n
<!--index here//-->\n
\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: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
</div>\n
<!-- Satus Messages, Breadcrumb, Language Box -->\n
<tal:block tal:condition="python: layout_form is not None">\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
</div>\n
\n
<div id="center" class="center_fluid" tal:define="dummy python: request.set(\'editable_mode\', True)">\n
<!-- Headline Box -->\n
<tal:block tal:condition="python: layout_form is not None">\n
......@@ -163,17 +158,14 @@
<tal:block metal:use-macro="here/aggregate_render/macros/aggregate_render"/>\n
</tal:block>\n
</tal:block>\n
\n
<!-- Splash Box -->\n
<tal:block tal:condition="python: layout_form is not None\n
and len(splash_area)\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 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
\n
\n
<!-- Layout form rendering -->\n
<div id="km_left" \n
tal:attributes="class python:\'alone\' * is_right_area_empty;\n
......@@ -190,7 +182,7 @@
<!-- Layout form rendering -->\n
<tal:block tal:condition="python: layout_form is not None">\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
......@@ -201,7 +193,7 @@
<!-- Layout form rendering -->\n
<tal:block tal:condition="python: layout_form is not None">\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
......@@ -209,20 +201,17 @@
<!-- Top Bar: navigation and search -->\n
<!-- Layout form rendering -->\n
</div>\n
\n
\n
<tal:block tal:condition="python: layout_form is not None">\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 tal:condition="python: layout_form is not None">\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
\n
</tal:block>\n
</tal:block>\n
</tal:block>\n
</tal:block>\n
</form>\n
</body>\n
</html>\n
</tal:block>\n
</body>\n
</html>
</tal:block>\n
</tal:block>
]]></unicode> </value>
</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