Commit c1fef47b authored by Ivan Tyagov's avatar Ivan Tyagov

AApply CSS naming convention.

Clean up listbox PT

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@37343 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 5c9b784b
...@@ -79,7 +79,7 @@ ...@@ -79,7 +79,7 @@
current_page_stop python: (total_line < current_page_max) and total_line or current_page_max;\n current_page_stop python: (total_line < current_page_max) and total_line or current_page_max;\n
listbox_id request/current_form_id | form_id ;\n listbox_id request/current_form_id | form_id ;\n
listbox_url string:${context_url}/${listbox_id};\n listbox_url string:${context_url}/${listbox_id};\n
">\n need_pagination python: total_line > listbox_max_lines;">\n
\n \n
<!-- Define hidden input. -->\n <!-- Define hidden input. -->\n
<input type="hidden" name="list_selection_name" value="default" tal:attributes="value selection_name" />\n <input type="hidden" name="list_selection_name" value="default" tal:attributes="value selection_name" />\n
...@@ -410,9 +410,9 @@ ...@@ -410,9 +410,9 @@
</table>\n </table>\n
</div>\n </div>\n
\n \n
<div class="listbox_footer">\n <div class="listbox-footer">\n
\n \n
<div class="listbox_footer_box">\n <div class="listbox-footer-box">\n
<!-- List mode choice -->\n <!-- List mode choice -->\n
<div tal:condition="python: not is_gadget_mode and (is_domain_tree_supported or is_report_tree_supported)"\n <div tal:condition="python: not is_gadget_mode and (is_domain_tree_supported or is_report_tree_supported)"\n
class="list_mode_selection">\n class="list_mode_selection">\n
...@@ -439,11 +439,9 @@ ...@@ -439,11 +439,9 @@
tal:attributes="src string:${portal_url_string}/images/view_choose.png;\n tal:attributes="src string:${portal_url_string}/images/view_choose.png;\n
id string:${field_id}_domain_tree_mode"\n id string:${field_id}_domain_tree_mode"\n
i18n:domain="ui" i18n:attributes="title" />\n i18n:domain="ui" i18n:attributes="title" />\n
\n
</div>\n </div>\n
\n \n
<!-- Choose display mode -->\n <!-- List display mode -->\n
<!--TODO define show_display_selection macro-->\n
<div tal:condition="python: len(display_style_list) > 0"\n <div tal:condition="python: len(display_style_list) > 0"\n
class="listbox-list-style-selection">\n class="listbox-list-style-selection">\n
<span i18n:translate="" i18n:domain="ui">Display:</span>\n <span i18n:translate="" i18n:domain="ui">Display:</span>\n
...@@ -457,11 +455,10 @@ ...@@ -457,11 +455,10 @@
</ul>\n </ul>\n
</div>\n </div>\n
\n \n
<!-- Extra Search -->\n <!-- Full text search -->\n
<div tal:define="search_text real_context/Base_getSearchText"\n <div tal:define="search_text real_context/Base_getSearchText"\n
tal:condition="show_full_text" \n tal:condition="show_full_text" \n
class="listbox-full-text-search">\n class="listbox-full-text-search">\n
\n
<tal:block tal:condition="not: is_gadget_mode">\n <tal:block tal:condition="not: is_gadget_mode">\n
<!-- Normal mode -->\n <!-- Normal mode -->\n
<input type="text"\n <input type="text"\n
...@@ -482,15 +479,12 @@ ...@@ -482,15 +479,12 @@
onkeypress python:"if(event.keyCode==13){" + real_context.KnowledgePad_generateAjaxCall(context_url+"/"+form_id,box,box_id,params).replace("\\"this.value\\"","this.value")+ "return false;;}"\'/>\n onkeypress python:"if(event.keyCode==13){" + real_context.KnowledgePad_generateAjaxCall(context_url+"/"+form_id,box,box_id,params).replace("\\"this.value\\"","this.value")+ "return false;;}"\'/>\n
</tal:block>\n </tal:block>\n
</div> \n </div> \n
\n
</div>\n </div>\n
<div class="listbox_footer_box"\n
tal:define="need_pagination python: int(here.total_size) > int(here.getMaxLineNumber())"\n
tal:condition="need_pagination">\n
\n \n
<div class="listbox_pagination pageNavigation" \n <!--Page pagination -->\n
<div class="listbox-footer-box listbox-page-navigation"\n
tal:condition="need_pagination">\n tal:condition="need_pagination">\n
<!--Display pagination -->\n <div class="pageNavigation">\n
<tal:block metal:use-macro="real_context/page_navigation_render/macros/page_navigation" />\n <tal:block metal:use-macro="real_context/page_navigation_render/macros/page_navigation" />\n
</div>\n </div>\n
</div>\n </div>\n
......
<?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>enabled</string>
<string>title</string>
</list>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>top_search_text</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>enabled</string> </key>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>field_id</string> </key>
<value> <string>search_text_listbox</string> </value>
</item>
<item>
<key> <string>form_id</string> </key>
<value> <string>WebSection_viewMinimalKMWidgetFieldLibrary</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>Top search text</string> </value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
...@@ -196,7 +196,7 @@ div.search_popup{\n ...@@ -196,7 +196,7 @@ div.search_popup{\n
}\n }\n
\n \n
/*Footer block*/\n /*Footer block*/\n
.listbox_footer{\n div.listbox-footer{\n
background-color:#F0EFE9;\n background-color:#F0EFE9;\n
float:left;\n float:left;\n
margin-bottom:0.3em;\n margin-bottom:0.3em;\n
...@@ -207,14 +207,12 @@ div.search_popup{\n ...@@ -207,14 +207,12 @@ div.search_popup{\n
}\n }\n
\n \n
/* Listbox Footer in gadget mode */\n /* Listbox Footer in gadget mode */\n
.block .listbox_footer{\n .block .listbox-footer{\n
background-color: transparent;\n background-color: transparent;\n
}\n }\n
\n \n
.listbox_footer_box {\n div.listbox-footer-box {\n
padding-top:5px;\n width: auto;\n
padding-bottom:5px;\n
width: 50%;\n
float:left;\n float:left;\n
}\n }\n
\n \n
...@@ -245,16 +243,18 @@ div.listbox-list-style-selection li a.selected{\n ...@@ -245,16 +243,18 @@ div.listbox-list-style-selection li a.selected{\n
div.listbox-full-text-search {\n div.listbox-full-text-search {\n
float:left;\n float:left;\n
margin-top:0;\n margin-top:0;\n
padding:1em 0 0.5em;\n padding:0em 0.5em;\n
width: auto;\n
}\n }\n
div.listbox-full-text-search input{\n div.listbox-full-text-search input{\n
width: auto;\n width: 130px;\n
}\n }\n
div.listbox-full-text-search input.button{\n div.listbox-full-text-search input.button{\n
background-image: url(\'./km_img/search_background.png\');\n background-image: url(\'./km_img/search_background.png\');\n
background-color: inherit;\n background-color: inherit;\n
border: 0 none;\n border: 0 none;\n
color:#FFFFFF;\n color:#FFFFFF;\n
width: auto;\n
}\n }\n
\n \n
div.resultList{\n div.resultList{\n
...@@ -263,16 +263,17 @@ div.resultList{\n ...@@ -263,16 +263,17 @@ div.resultList{\n
div.searchResultHeader{\n div.searchResultHeader{\n
float:left;\n float:left;\n
}\n }\n
\n
\n
/* Pagination*/\n /* Pagination*/\n
.listbox_pagination {\n div.listbox-page-navigation{\n
width:auto;\n width:auto;\n
margin:auto;\n margin:auto;\n
text-align:right;\n
padding-right: 0.5em;\n padding-right: 0.5em;\n
float:right;\n
}\n }\n
.listbox_pagination input{\n div.listbox-page-navigation input{\n
text-align:center;\n max-width: 30px;\n
width: 20px;\n
}\n }\n
\n \n
/* Report tree */\n /* Report tree */\n
......
1498 1499
\ 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