Commit 37281923 authored by Ivan Tyagov's avatar Ivan Tyagov

Gadgets should act as a generic system which can be integrated into any kind...

Gadgets should act as a generic system which can be integrated into any kind of web theme without need to support this in its code itself (it's job of the theme to configure gadgets accordingly through proper CSS, overrides, etc..)

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@40840 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent c17475f5
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="File" module="OFS.Image"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_Cacheable__manager_id</string> </key>
<value> <string>http_cache</string> </value>
</item>
<item>
<key> <string>_EtagSupport__etag</string> </key>
<value> <string>ts84987105.64</string> </value>
</item>
<item>
<key> <string>__name__</string> </key>
<value> <string>erp5_knowledge_box_web.css</string> </value>
</item>
<item>
<key> <string>content_type</string> </key>
<value> <string>text/css</string> </value>
</item>
<item>
<key> <string>data</string> </key>
<value> <string encoding="cdata"><![CDATA[
/* CSS Web layout (one column) for Gadgets */\n
\n
#page_wrapper {\n
background: transparent;\n
padding: 0em;\n
min-height: 200px;\n
}\n
\n
.portal-column {\n
width: 100%;\n
min-height: 100px;\n
margin-right: 5px;\n
}\n
\n
#portal-column-2{\n
margin-right: 0px;\n
}\n
\n
.block {\n
margin-top: 0.5em;\n
}\n
\n
.block li {\n
margin-left: 0.5em;\n
/*list-style-type:none;*/\n
}\n
\n
.block h3 span.gadget_title{\n
background: none;\n
border-top: none;\n
}\n
\n
\n
.box_inner_content {\n
border: 1px solid #c3c3ee;\n
border-top: none;\n
overflow: auto;\n
}\n
\n
.edit-form {\n
border: none;\n
background-color: #ECECEC;\n
border-left: 1px solid #c3c3ee;\n
border-right: 1px solid #c3c3ee;\n
}\n
\n
\n
h3.handle {\n
margin: 0;\n
padding: 0 0 0 10px;\n
color: #000000;\n
font-size: 10px;\n
border: 1px solid #c3c3ee;\n
background: none;\n
background-color: #ECECEC;\n
}\n
\n
h3.handle span.handle {\n
display: block;\n
min-height:20px;\n
padding: 5px 5px 0 0;\n
background: none;\n
}\n
\n
\n
#add_new_gadget_link {\n
border-bottom: none;\n
}\n
\n
#page_wrapper .content{\n
border: none;\n
}\n
\n
.tab {\n
background-color: #ECECEC;\n
}\n
\n
.tab_selected {\n
background-color: #FFFFFF;\n
border-bottom:1px solid #FFFFFF;\n
}\n
\n
.toggable_dialog {\n
left:200px;\n
top: 100px;\n
width: 200px;\n
}\n
\n
.toggable_dialog button{\n
padding: 0em;\n
float:left;\n
}\n
\n
.toggable_dialog h3{\n
margin-bottom: 1em;\n
}\n
\n
#tabs li{\n
margin-left:0em;\n
}\n
\n
.wait_block p{\n
text-align: center;\n
}\n
\n
#add_new_tab_diloag_link{\n
margin-left: 0.5em;\n
}\n
\n
.border_bottom0px{\n
border-bottom: 1px solid #FFFFFF;\n
}\n
\n
/* disable cursor for anonymous users */\n
.portal-column-undraggable .handle{\n
cursor: default;\n
}\n
\n
/* add space between fieldsets for gadgtes */\n
div.block fieldset > div {\n
margin-bottom: 0.3em;\n
}\n
div.block fieldset label{\n
text-align: left;\n
display: block;\n
}
]]></string> </value>
</item>
<item>
<key> <string>precondition</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>size</string> </key>
<value> <int>1741</int> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<global name="File" module="OFS.Image"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_Cacheable__manager_id</string> </key>
<value> <string>http_cache</string> </value>
</item>
<item>
<key> <string>_EtagSupport__etag</string> </key>
<value> <string>ts05928956.84</string> </value>
</item>
<item>
<key> <string>__name__</string> </key>
<value> <string>erp5_knowledge_box_web_1column.css</string> </value>
</item>
<item>
<key> <string>content_type</string> </key>
<value> <string>text/css</string> </value>
</item>
<item>
<key> <string>data</string> </key>
<value> <string>/* Fixes to CSS for 1 column layout*/\n
\n
/* one column no need of right margin */\n
.portal-column {\n
margin-right: 0px;\n
background-color:#FFFFFF;\n
}</string> </value>
</item>
<item>
<key> <string>precondition</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>size</string> </key>
<value> <long>148</long> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<global name="File" module="OFS.Image"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_Cacheable__manager_id</string> </key>
<value> <string>http_cache</string> </value>
</item>
<item>
<key> <string>_EtagSupport__etag</string> </key>
<value> <string>ts07662395.79</string> </value>
</item>
<item>
<key> <string>__name__</string> </key>
<value> <string>erp5_knowledge_box_web_3columns.css</string> </value>
</item>
<item>
<key> <string>content_type</string> </key>
<value> <string>text/css</string> </value>
</item>
<item>
<key> <string>data</string> </key>
<value> <string>/* Fixes to CSS */\n
.portal-column {\n
width: 32.5%; \n
}\n
\n
/* portal-column and portal-column-undraggable are actually the same\n
except for JS code that uses them in order to make certain parts draggable*/\n
.portal-column-undraggable {\n
float:left; \n
margin:0em 0em 0em 0.5em;\n
padding:0em;\n
width:32.5%;\n
}</string> </value>
</item>
<item>
<key> <string>precondition</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>size</string> </key>
<value> <int>307</int> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="ZopePageTemplate" module="Products.PageTemplates.ZopePageTemplate"/>
</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> <unicode encoding="cdata"><![CDATA[
<tal:block tal:replace="nothing"\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
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
\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
\n
<tal:block metal:define-macro="master">\n
<tal:block tal:define="portal_path python:here.getWebSiteValue().absolute_url();\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
\'%s/erp5_knowledge_box.css\' % portal_path,\n
\'%s/erp5_knowledge_box_web.css\' % portal_path,\n
];\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
<div id="main_content">\n
<tal:block tal:condition="here/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="structure here/REQUEST/portal_status_message | nothing" id="transition_message"/>\n
</tal:block>\n
<tal:block metal:define-slot="main"/>\n
<!--<span tal:content="structure here/WebSection_viewColumnTwo"/>-->\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
\n
However this has bad side effect: the editable_mode variable in request is\n
forced to True and is no longer representative of the web site mode.\n
\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
dialog_mode dialog_mode | nothing;\n
list_mode list_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
<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
</tal:block>
]]></unicode> </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_web</string> </value>
</item>
<item>
<key> <string>output_encoding</string> </key>
<value> <string>utf-8</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <unicode></unicode> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
619 620
\ No newline at end of file \ No newline at end of file
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