From fe49acd2a29cbf9fc7f6e1f10f9eb22dbc23d048 Mon Sep 17 00:00:00 2001 From: Kazuhiko Shiozaki <kazuhiko@nexedi.com> Date: Thu, 19 Mar 2009 14:10:41 +0000 Subject: [PATCH] override template_erp5_xhtml to add 'TioLive / ' at the top of the breadcrumbs. we will need more overrides here. git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@26092 20353a03-c40f-0410-a6d1-a30d3c3de9de --- .../template_erp5_xhtml_style.xml | 171 ++++++++++++++++++ bt5/tiolive_base/bt/revision | 2 +- 2 files changed, 172 insertions(+), 1 deletion(-) create mode 100644 bt5/tiolive_base/SkinTemplateItem/portal_skins/tiolive_base/template_erp5_xhtml_style.xml diff --git a/bt5/tiolive_base/SkinTemplateItem/portal_skins/tiolive_base/template_erp5_xhtml_style.xml b/bt5/tiolive_base/SkinTemplateItem/portal_skins/tiolive_base/template_erp5_xhtml_style.xml new file mode 100644 index 0000000000..f9e03fc64b --- /dev/null +++ b/bt5/tiolive_base/SkinTemplateItem/portal_skins/tiolive_base/template_erp5_xhtml_style.xml @@ -0,0 +1,171 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="ZopePageTemplate" module="Products.PageTemplates.ZopePageTemplate"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>_bind_names</string> </key> + <value> + <object> + <klass> + <global name="NameAssignments" module="Shared.DC.Scripts.Bindings"/> + </klass> + <tuple/> + <state> + <dictionary> + <item> + <key> <string>_asgns</string> </key> + <value> + <dictionary> + <item> + <key> <string>name_subpath</string> </key> + <value> <string>traverse_subpath</string> </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </state> + </object> + </value> + </item> + <item> + <key> <string>_text</string> </key> + <value> <string encoding="cdata"><![CDATA[ + +<tal:block 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 + <tal:block tal:replace="nothing">\n +<!--\n +IDEAS:\n + - Add callbacks to ERP5Form object (selection ?) to gather needed fields -> put them in http_parameter_list.\n +-->\n + </tal:block>\n + <tal:block metal:define-macro="master">\n + <tal:block tal:define="global_definitions_macros here/global_definitions/macros">\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 + <base tal:attributes="href python: \'%s/\' % (url, )" />\n + <meta name="generator" content="ERP5 - Copyright (C) 2001 - 2008. All rights reserved." />\n + <meta name="description" content=""\n + tal:attributes="content title | string:ERP5 Free Open Source ERP and CRM" />\n + <meta name="keywords" content=""\n + tal:attributes="content python:\', \'.join(here.getProperty(\'subject_list\', []) or [])" />\n + <meta name="robots" content="index, follow" />\n + <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />\n + <meta http-equiv="Content-Script-Type" content="text/javascript" />\n + <meta http-equiv="Content-Style-Type" content="text/css" />\n + <title tal:define="title title | string:ERP5"\n + tal:content="python: \'%s | %s\' % (title, here.getPortalObject().title_or_id())"></title>\n + <tal:block tal:replace="nothing">\n + <!-- Render each field\'s css and include css\'s and javascripts. -->\n + </tal:block>\n + <tal:block tal:condition="python: form is not None">\n + <tal:block tal:repeat="group python: [x for x in form.get_groups(include_empty=0) if x != \'hidden\']">\n + <tal:block tal:repeat="field python: form.get_fields_in_group(group)">\n + <tal:block tal:define="css python: field.render_css(REQUEST=request)">\n + <style type="text/css"\n + tal:condition="python: css is not None"\n + tal:content="css">\n + </style>\n + </tal:block>\n + <tal:block tal:define="dummy python: css_list.extend(field.get_css_list(REQUEST=request))" />\n + <tal:block tal:define="dummy python: js_list.extend(field.get_javascript_list(REQUEST=request))" />\n + </tal:block>\n + </tal:block>\n + </tal:block>\n + <tal:block tal:repeat="css css_list">\n + <link tal:attributes="href css" type="text/css" rel="stylesheet" />\n + </tal:block>\n + <tal:block tal:repeat="js js_list">\n + <script tal:attributes="src js" type="text/javascript"></script>\n + </tal:block>\n + <link rel="icon" tal:attributes="href string:${portal_path}/favicon.ico" type="image/x-icon" />\n + <link rel="shortcut icon" tal:attributes="href string:${portal_path}/favicon.ico" type="image/x-icon" />\n + </head>\n + <body>\n + <form id="main_form"\n + tal:attributes="enctype form/Form_getEnctype | enctype | nothing;\n + action url;\n + method python:str(path(\'form/method | string:post\')).lower()">\n + <fieldset id="hidden_fieldset">\n + <!-- Hidden button as explained in http://ppewww.ph.gla.ac.uk/~flavell/www/formquestion.html -->\n + <!-- We should probably call the default method instead -->\n + <input tal:condition="form_action | nothing"\n + id="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:define-slot="layout">\n + <div id="bars">\n + <div id="main_bar"\n + tal:content="structure portal/ERP5Site_renderCachedNavigationBox">\n + </div>\n + <div id="context_bar">\n + <tal:block metal:define-slot="context_bar" />\n + </div>\n + </div>\n + <div id="status">\n + <div id="breadcrumb">\n + <a href="https://www.tiolive.com/">TioLive</a> /\n + <tal:block tal:repeat="item here/breadcrumbs">\n + <a tal:attributes="href item/url" tal:content="item/title" />\n + /\n + </tal:block>\n + </div>\n + <div id="logged_in_as">\n + <tal:block tal:condition="not: portal/portal_membership/isAnonymousUser">\n + <span class="logged_txt" i18n:translate="" i18n:domain="ui">Logged in as :</span>\n + <tal:block tal:replace="python:portal.portal_membership.getAuthenticatedMember().getUserName()" />\n + </tal:block>\n + </div>\n + <p class="clear"></p>\n + <div tal:content="request/portal_status_message | nothing" id="transition_message" />\n + <div id="information_area" tal:condition="request/field_errors | nothing" \n + i18n:translate="" i18n:domain="ui">\n + Input data has errors. Please look at the error messages below.\n + </div>\n + </div>\n + <div id="master">\n + <tal:block metal:define-slot="main" />\n + </div>\n + </tal:block>\n + </form>\n + </body>\n + </html>\n + </tal:block>\n + </tal:block>\n +</tal:block>\n + + +]]></string> </value> + </item> + <item> + <key> <string>content_type</string> </key> + <value> <string>text/html</string> </value> + </item> + <item> + <key> <string>expand</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>template_erp5_xhtml_style</string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/tiolive_base/bt/revision b/bt5/tiolive_base/bt/revision index 3cacc0b93c..ca7bf83ac5 100644 --- a/bt5/tiolive_base/bt/revision +++ b/bt5/tiolive_base/bt/revision @@ -1 +1 @@ -12 \ No newline at end of file +13 \ No newline at end of file -- 2.30.9