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 @@
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_url string:${context_url}/${listbox_id};\n
">\n
need_pagination python: total_line > listbox_max_lines;">\n
\n
<!-- Define hidden input. -->\n
<input type="hidden" name="list_selection_name" value="default" tal:attributes="value selection_name" />\n
......@@ -410,9 +410,9 @@
</table>\n
</div>\n
\n
<div class="listbox_footer">\n
<div class="listbox-footer">\n
\n
<div class="listbox_footer_box">\n
<div class="listbox-footer-box">\n
<!-- List mode choice -->\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
......@@ -439,11 +439,9 @@
tal:attributes="src string:${portal_url_string}/images/view_choose.png;\n
id string:${field_id}_domain_tree_mode"\n
i18n:domain="ui" i18n:attributes="title" />\n
\n
</div>\n
\n
<!-- Choose display mode -->\n
<!--TODO define show_display_selection macro-->\n
<!-- List display mode -->\n
<div tal:condition="python: len(display_style_list) > 0"\n
class="listbox-list-style-selection">\n
<span i18n:translate="" i18n:domain="ui">Display:</span>\n
......@@ -457,11 +455,10 @@
</ul>\n
</div>\n
\n
<!-- Extra Search -->\n
<!-- Full text search -->\n
<div tal:define="search_text real_context/Base_getSearchText"\n
tal:condition="show_full_text" \n
class="listbox-full-text-search">\n
\n
<tal:block tal:condition="not: is_gadget_mode">\n
<!-- Normal mode -->\n
<input type="text"\n
......@@ -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
</tal:block>\n
</div> \n
\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
<div class="listbox_pagination pageNavigation" \n
<!--Page pagination -->\n
<div class="listbox-footer-box listbox-page-navigation"\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
</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
}\n
\n
/*Footer block*/\n
.listbox_footer{\n
div.listbox-footer{\n
background-color:#F0EFE9;\n
float:left;\n
margin-bottom:0.3em;\n
......@@ -207,14 +207,12 @@ div.search_popup{\n
}\n
\n
/* Listbox Footer in gadget mode */\n
.block .listbox_footer{\n
.block .listbox-footer{\n
background-color: transparent;\n
}\n
\n
.listbox_footer_box {\n
padding-top:5px;\n
padding-bottom:5px;\n
width: 50%;\n
div.listbox-footer-box {\n
width: auto;\n
float:left;\n
}\n
\n
......@@ -245,16 +243,18 @@ div.listbox-list-style-selection li a.selected{\n
div.listbox-full-text-search {\n
float:left;\n
margin-top:0;\n
padding:1em 0 0.5em;\n
padding:0em 0.5em;\n
width: auto;\n
}\n
div.listbox-full-text-search input{\n
width: auto;\n
width: 130px;\n
}\n
div.listbox-full-text-search input.button{\n
background-image: url(\'./km_img/search_background.png\');\n
background-color: inherit;\n
border: 0 none;\n
color:#FFFFFF;\n
width: auto;\n
}\n
\n
div.resultList{\n
......@@ -263,16 +263,17 @@ div.resultList{\n
div.searchResultHeader{\n
float:left;\n
}\n
\n
\n
/* Pagination*/\n
.listbox_pagination {\n
div.listbox-page-navigation{\n
width:auto;\n
margin:auto;\n
text-align:right;\n
padding-right: 0.5em;\n
float:right;\n
}\n
.listbox_pagination input{\n
text-align:center;\n
width: 20px;\n
div.listbox-page-navigation input{\n
max-width: 30px;\n
}\n
\n
/* Report tree */\n
......
1498
\ No newline at end of file
1499
\ 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