Commit 0f24422d authored by Ivan Tyagov's avatar Ivan Tyagov

No need to use tables for gadget pad switch navigation.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@42457 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 8f8c3ea3
......@@ -156,29 +156,21 @@
tal:define="is_tabs_visible \n
python: int(here.REQUEST.get(\'is_tabs_visible\', 1));">\n
\n
<table id="navigation_table">\n
<tr>\n
<td id="tab-switcher-container">\n
<div class="tab"\n
id="tabs_switcher"\n
tal:attributes="class python: test(is_tabs_visible,\n
\'border_bottom1px\',\n
\'border_bottom0px\');">\n
id="tabs_switcher">\n
<span i18n:translate="" i18n:domain="ui" id="tab_switcher_hidden"\n
tal:attributes="style python: test(is_tabs_visible, \'display:none\', None)">Show tabs</span>\n
<span i18n:translate="" i18n:domain="ui" id="tab_switcher_visible"\n
tal:attributes="style python: test(is_tabs_visible, None, \'display:none\')">Hide tabs</span>\n
</div>\n
</td>\n
<td id="tab-list-container">\n
\n
<div id="tabs"\n
tal:attributes="style python: \n
\'display: %s\' %test(is_tabs_visible, \'block\', \'none\')">\n
<ul>\n
<tal:block tal:repeat="knowledge_pad knowledge_pads">\n
\n
<tal:block \n
tal:define="knowledge_pad_relative_url knowledge_pad/getRelativeUrl;\n
<tal:block tal:define="knowledge_pad_relative_url knowledge_pad/getRelativeUrl;\n
active_knowledge_pad_relative_url active_knowledge_pad/getRelativeUrl;\n
is_active python: knowledge_pad_relative_url==active_knowledge_pad_relative_url;\n
dom_id python: \'%s\' %knowledge_pad_relative_url.replace(\'/\', \'_\');\n
......@@ -232,19 +224,10 @@
id="create_own_pad_dialog_link"></li>\n
</ul>\n
</div>\n
</td>\n
\n
<td id="add-new-gadget-container">\n
<div id="add_new_gadget_link"\n
tal:attributes="class python: test(is_tabs_visible,\n
\'border_bottom1px\',\n
\'border_bottom0px\');">\n
\n
<div id="add_new_gadget_link">\n
<span metal:use-macro="container/Base_viewKnowledgePadMacroLibrary/macros/add_new_gadget"> Add Gadgets</span>\n
</div>\n
</td>\n
\n
</tr>\n
</table>\n
\n
</tal:block>\n
\n
......
......@@ -12,7 +12,7 @@
</item>
<item>
<key> <string>_EtagSupport__etag</string> </key>
<value> <string>ts94401374.54</string> </value>
<value> <string>ts95442223.79</string> </value>
</item>
<item>
<key> <string>__name__</string> </key>
......@@ -165,29 +165,17 @@ div.edit-form {\n
}\n
\n
/* Tabs for Knowledge Pads */ \n
#navigation_table {\n
width: 100%;\n
border-collapse:collapse;\n
margin:0em;\n
border:medium none;\n
}\n
\n
#navigation_table tr{\n
border:medium none;\n
}\n
\n
#navigation_table td{\n
margin: 0em;\n
padding: 0em;\n
border:medium none;\n
#pad-navigation-wrapper{\n
margin-top:10px;\n
border-bottom:1px solid #3D6474;\n
height:25px;\n
width:100%;\n
}\n
\n
#tabs {\n
height: 25px;\n
border-bottom: 1px solid #3D6474;\n
padding-left: 0em;\n
width: 100%;\n
float: left;\n
width:78%;\n
}\n
\n
#tabs ul {\n
......@@ -273,20 +261,15 @@ div.toggable_dialog{\n
border-style: none;\n
}\n
\n
#tabs-switcher-container{\n
width: 17.5%;\n
}\n
\n
#tabs_switcher{\n
cursor: pointer; \n
font-weight: bold;\n
background: transparent;\n
padding-top: 5px;\n
border-style: none;\n
width: 100%;\n
border-bottom: 1px solid #3D6474;\n
height: 20px;\n
margin: 0em;\n
width: 10%;\n
float:left\n
}\n
\n
#add_new_gadget_link{\n
......@@ -294,7 +277,8 @@ div.toggable_dialog{\n
height: 20px;\n
text-align:right; \n
padding-top:5px;\n
border-bottom:1px solid #3D6474;\n
float:right;\n
width:12%;\n
}\n
\n
/* Draggable Area */\n
......@@ -318,15 +302,6 @@ div.box_inner_content ol{\n
margin-top: 0em;\n
}\n
\n
/* this classes will switch one/off border below tabs selector*/\n
div.border_bottom0px{\n
border-bottom: 1px solid #DAE6F6;\n
}\n
\n
div.border_bottom1px{\n
border-bottom: 1px solid #3D6474;\n
}\n
\n
/* seperate gadget tables from rest of ERP5*/\n
div.block div.content{\n
padding: 0px;\n
......@@ -520,7 +495,7 @@ div.gadget-rss-reader .body {\n
</item>
<item>
<key> <string>size</string> </key>
<value> <int>8675</int> </value>
<value> <int>8226</int> </value>
</item>
<item>
<key> <string>title</string> </key>
......
677
\ No newline at end of file
678
\ 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