Commit 49821c11 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

add toolbox widget.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@27065 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent c522236a
......@@ -86,6 +86,7 @@
<string>subcontent subcontent-box documentbox (4-13b. Document)</string>
<string>subcontent subcontent-box blogbox (4-13c. Blog)</string>
<string>subcontent subcontent-box forumbox (4.13d Forum)</string>
<string>subcontent subcontent-box adminToolbox (Toolbox)</string>
</list>
</value>
</item>
......@@ -137,6 +138,14 @@
</list>
</value>
</item>
<item>
<key> <string>subcontent subcontent-box adminToolbox (Toolbox)</string> </key>
<value>
<list>
<string>tool_box</string>
</list>
</value>
</item>
<item>
<key> <string>subcontent subcontent-box audiobox (4-12. Audio)</string> </key>
<value>
......
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<global name="ProxyField" module="Products.ERP5Form.ProxyField"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>delegated_list</string> </key>
<value>
<list>
<string>default</string>
<string>editable</string>
<string>title</string>
</list>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>tool_box</string> </value>
</item>
<item>
<key> <string>message_values</string> </key>
<value>
<dictionary>
<item>
<key> <string>external_validator_failed</string> </key>
<value> <string>The input failed the external validator.</string> </value>
</item>
</dictionary>
</value>
</item>
<item>
<key> <string>overrides</string> </key>
<value>
<dictionary>
<item>
<key> <string>field_id</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>form_id</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>target</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</value>
</item>
<item>
<key> <string>tales</string> </key>
<value>
<dictionary>
<item>
<key> <string>default</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
</value>
</item>
<item>
<key> <string>editable</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>field_id</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>form_id</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>target</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</value>
</item>
<item>
<key> <string>values</string> </key>
<value>
<dictionary>
<item>
<key> <string>default</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>editable</string> </key>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>field_id</string> </key>
<value> <string>my_editor_field</string> </value>
</item>
<item>
<key> <string>form_id</string> </key>
<value> <string>Base_viewFieldLibrary</string> </value>
</item>
<item>
<key> <string>target</string> </key>
<value> <string>Click to edit the target</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>tool_box</string> </value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</pickle>
</record>
<record id="2" aka="AAAAAAAAAAI=">
<pickle>
<tuple>
<global name="TALESMethod" module="Products.Formulator.TALESField"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_text</string> </key>
<value> <string>here/admin_toolbox</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
......@@ -68,6 +68,7 @@
<string>headline</string>
<string>footer</string>
<string>subcontent subcontent-box sidemenu1 (Subsections)</string>
<string>subcontent subcontent-box adminToolbox (Toolbox)</string>
</list>
</value>
</item>
......@@ -119,6 +120,14 @@
</list>
</value>
</item>
<item>
<key> <string>subcontent subcontent-box adminToolbox (Toolbox)</string> </key>
<value>
<list>
<string>tool_box</string>
</list>
</value>
</item>
<item>
<key> <string>subcontent subcontent-box sidemenu1 (Subsections)</string> </key>
<value>
......
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<global name="ProxyField" module="Products.ERP5Form.ProxyField"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>delegated_list</string> </key>
<value>
<list/>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>tool_box</string> </value>
</item>
<item>
<key> <string>message_values</string> </key>
<value>
<dictionary>
<item>
<key> <string>external_validator_failed</string> </key>
<value> <string>The input failed the external validator.</string> </value>
</item>
</dictionary>
</value>
</item>
<item>
<key> <string>overrides</string> </key>
<value>
<dictionary>
<item>
<key> <string>field_id</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>form_id</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>target</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</value>
</item>
<item>
<key> <string>tales</string> </key>
<value>
<dictionary>
<item>
<key> <string>field_id</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>form_id</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>target</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</value>
</item>
<item>
<key> <string>values</string> </key>
<value>
<dictionary>
<item>
<key> <string>field_id</string> </key>
<value> <string>tool_box</string> </value>
</item>
<item>
<key> <string>form_id</string> </key>
<value> <string>erp5_web_multiflex5_demo_layout</string> </value>
</item>
<item>
<key> <string>target</string> </key>
<value> <string>Click to edit the target</string> </value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
......@@ -343,6 +343,143 @@
/* We will have to handle the different types in another way */\n
/* .subcontent h1.group_title {background: url(./mf54_image/icon_celltitle_menu.gif) no-repeat; background-position:225px 5px;} */\n
\n
div.adminToolbox input, textarea{ /* This should be common XXX */\n
border: 1px solid #999;\n
}\n
\n
div.adminToolbox select {\n
border: 1px solid #999;\n
max-width: 12em;\n
}\n
\n
div.adminToolbox input, textarea {\n
padding: 1px;\n
}\n
\n
div.adminToolbox.field label {\n
display: none!important;\n
}\n
\n
div.adminToolbox div.adminSection label {\n
display: block!important;\n
width: 6em!important;\n
}\n
\n
div.adminToolbox div.hiddenLabel label {\n
display: none!important;\n
}\n
\n
/* Sub section title */\n
div.adminToolbox h3 {\n
margin-left: 0em;\n
/* font-size: inherit; */ /* Does not seem compatible with IE */\n
font-size: 8pt;\n
}\n
\n
/* Title */\n
div.adminToolbox > div > h3 {\n
background: #f77;\n
padding: .5em;\n
margin: 0;\n
color: #fff;\n
cursor: pointer;\n
}\n
\n
div.adminToolbox > div > h3:hover {background: #f00}\n
\n
div.adminToolbox > div.input > div.adminSection {\n
border-bottom: 1px dotted #777;\n
padding: .5em .5em .5em 0.5em;\n
}\n
\n
div.adminToolbox > div.input > div.adminSection:last-child {border-bottom: none}\n
\n
div.adminToolbox ul {list-style: none}\n
\n
div.adminToolbox li {margin: 0}\n
\n
div.adminToolbox li > a {text-decoration: none}\n
\n
div.adminToolbox button,\n
div.adminToolbox li > a {\n
margin: .1em 0;\n
padding: .2em;\n
}\n
\n
div.adminToolbox button[type="submit"] {\n
display: none;\n
}\n
\n
\n
\n
/* Reset default styling of fields in admin tool box\n
** TODO: find a CSS trick to let forms and fieldset embedded in\n
** ".adminToolbox" behave like default one instead of using\n
** the one defined by default "div.wrapper div.field" rules.\n
*/\n
div.adminToolbox fieldset { /* Should be the same as "fieldset" rule */\n
background: none;\n
border: inherit;\n
margin: 0;\n
border: 0;\n
}\n
div.adminToolbox fieldset > div.field { /* Should be similar to "fieldset > div" rule */\n
padding: 0;\n
margin: .1em 0;\n
border: none;\n
width: 100%;\n
}\n
\n
/* Those values differ from default "fieldset label" rule to reduce admin toolbox minimum width */\n
div.adminToolbox div.field div.input {margin-left: 0em}\n
\n
/* Cut the cascading heritance if margin-left for input */\n
div.adminToolbox > div.input {margin-left: inherit}\n
div.adminToolbox fieldset div.field label:after {content: inherit}\n
\n
\n
/* Admin toolbox edit buttons have the same style as actions buttons */\n
div.adminToolbox li > a,\n
button {\n
border: 1px #ddd solid;\n
color: #999;\n
background: #eee;\n
cursor: pointer;\n
display: block;\n
}\n
\n
div.adminToolbox li > a:hover,\n
button:hover {\n
color: #333;\n
background: #b0cfcb;\n
border-color: #9abdb7;\n
}\n
\n
div.adminToolbox a img,\n
div.adminToolbox a:hover img,\n
div.adminToolbox button img {\n
border:0 none;\n
float:none;\n
margin:0;\n
}\n
\n
div.adminToolbox h3 {\n
margin:0.5em 0 0.2em;\n
}\n
\n
div.adminToolbox ul {\n
margin:0;\n
}\n
\n
div.adminToolbox ul li {\n
font-size:100% !important;\n
}\n
\n
div.adminToolbox div.adminSection > span,\n
div.adminToolbox div.adminSection > fieldset > div.field {\n
padding:0 20px;\n
}\n
\n
</tal:block>
]]></string> </value>
......
93
\ No newline at end of file
94
\ 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