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
...@@ -87,13 +87,13 @@ ...@@ -87,13 +87,13 @@
tal:attributes="value selection_name;\n tal:attributes="value selection_name;\n
name string:${field_id}_list_selection_name" />\n name string:${field_id}_list_selection_name" />\n
<input tal:condition="md5_string" type="hidden" name="md5_object_uid_list" value="checksum" tal:attributes="value md5_string" />\n <input tal:condition="md5_string" type="hidden" name="md5_object_uid_list" value="checksum" tal:attributes="value md5_string" />\n
<input tal:condition="form_id" type="hidden" name="form_id" tal:attributes="value form_id" tal:replace="nothing"/>\n <input tal:condition="form_id" type="hidden" name="form_id" tal:attributes="value form_id" tal:replace="nothing"/>\n
\n \n
<tal:block tal:condition="is_gadget_mode">\n <tal:block tal:condition="is_gadget_mode">\n
<tal:block tal:define="global box_relative_url python: request.get(\'box_relative_url\', \'\');\n <tal:block tal:define="global box_relative_url python: request.get(\'box_relative_url\', \'\');\n
global box python: real_context.restrictedTraverse(box_relative_url); \n global box python: real_context.restrictedTraverse(box_relative_url); \n
global box_id python: \'visual_%s\' %box_relative_url.split(\'/\')[-1];\n global box_id python: \'visual_%s\' %box_relative_url.split(\'/\')[-1];\n
global dom_id python: request.get(\'dom_id\',None) or box_id;">\n global dom_id python: request.get(\'dom_id\',None) or box_id;">\n
<input tal:condition="python:form_id" \n <input tal:condition="python:form_id" \n
type="hidden" name="gadget_form_id"\n type="hidden" name="gadget_form_id"\n
tal:attributes="value form_id" />\n tal:attributes="value form_id" />\n
...@@ -410,90 +410,84 @@ ...@@ -410,90 +410,84 @@
</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
\n
<input tal:condition="python: is_domain_tree_supported or is_report_tree_supported"\n
type="image" src="text_block.png" id="listbox_flat_list_mode"\n
class="listbox_flat_list_mode"\n
title="Flat List" name="setFlatListMode:method"\n
value="1" alt="Flat List"\n
tal:attributes="src string:${portal_url_string}/images/text_block.png;\n
id string:${field_id}_flat_list_mode"\n
i18n:domain="ui" i18n:attributes="title" />\n
<input tal:condition="python: not is_gadget_mode and is_report_tree_supported"\n
type="image" src="view_tree.png" id="listbox_report_tree_mode"\n
title="Report Tree" name="setReportTreeMode:method"\n
value="1" alt="Report Tree"\n
tal:attributes="src string:${portal_url_string}/images/view_tree.png;\n
id string:${field_id}_report_tree_mode"\n
i18n:domain="ui" i18n:attributes="title" />\n
<input tal:condition="python: not is_gadget_mode and is_domain_tree_supported"\n
type="image" src="view_choose.png" id="listbox_domain_tree_mode"\n
title="Domain Tree" name="setDomainTreeMode:method"\n
value="1" alt="Domain Tree"\n
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
<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
<ul>\n
<li tal:repeat="style display_style_list">\n
<a tal:attributes="href python: \'%s?list_style=%s\' % (listbox_url, style[0]);\n
class python: test(style[0]==list_style, \'selected\',\'\');"\n
tal:content="python: style[1]"\n
i18n:translate="" i18n:domain="ui"/>\n
</li>\n
</ul>\n
</div>\n
\n
<!-- Extra 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
tal:attributes="value search_text;\n
name full_text_search_key;\n
onkeypress string: submitFormOnEnter(event, this.form, \'${full_text_search_key_script}\');"/>\n
<input class="button" \n
i18n:domain="ui" i18n:attributes="value"\n
value="Search" type="submit" \n
tal:attributes="name string:${full_text_search_key_script}:method"/>\n
</tal:block>\n
<tal:block tal:condition="is_gadget_mode">\n
<!-- Gadget mode -->\n
<input tal:define="params python: {\'%s:method\' %full_text_search_key_script:\'\',\'%s\' %full_text_search_key:\'this.value\'};"\n
type="text"\n
tal:attributes=\'value search_text;\n
name full_text_search_key;\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
</div> \n
\n \n
<input tal:condition="python: is_domain_tree_supported or is_report_tree_supported"\n
type="image" src="text_block.png" id="listbox_flat_list_mode"\n
class="listbox_flat_list_mode"\n
title="Flat List" name="setFlatListMode:method"\n
value="1" alt="Flat List"\n
tal:attributes="src string:${portal_url_string}/images/text_block.png;\n
id string:${field_id}_flat_list_mode"\n
i18n:domain="ui" i18n:attributes="title" />\n
<input tal:condition="python: not is_gadget_mode and is_report_tree_supported"\n
type="image" src="view_tree.png" id="listbox_report_tree_mode"\n
title="Report Tree" name="setReportTreeMode:method"\n
value="1" alt="Report Tree"\n
tal:attributes="src string:${portal_url_string}/images/view_tree.png;\n
id string:${field_id}_report_tree_mode"\n
i18n:domain="ui" i18n:attributes="title" />\n
<input tal:condition="python: not is_gadget_mode and is_domain_tree_supported"\n
type="image" src="view_choose.png" id="listbox_domain_tree_mode"\n
title="Domain Tree" name="setDomainTreeMode:method"\n
value="1" alt="Domain Tree"\n
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
</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 <!-- List display mode -->\n
tal:condition="need_pagination">\n <div tal:condition="python: len(display_style_list) > 0"\n
<!--Display pagination -->\n class="listbox-list-style-selection">\n
<tal:block metal:use-macro="real_context/page_navigation_render/macros/page_navigation" />\n <span i18n:translate="" i18n:domain="ui">Display:</span>\n
<ul>\n
<li tal:repeat="style display_style_list">\n
<a tal:attributes="href python: \'%s?list_style=%s\' % (listbox_url, style[0]);\n
class python: test(style[0]==list_style, \'selected\',\'\');"\n
tal:content="python: style[1]"\n
i18n:translate="" i18n:domain="ui"/>\n
</li>\n
</ul>\n
</div>\n </div>\n
\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
<tal:block tal:condition="not: is_gadget_mode">\n
<!-- Normal mode -->\n
<input type="text"\n
tal:attributes="value search_text;\n
name full_text_search_key;\n
onkeypress string: submitFormOnEnter(event, this.form, \'${full_text_search_key_script}\');"/>\n
<input class="button" \n
i18n:domain="ui" i18n:attributes="value"\n
value="Search" type="submit" \n
tal:attributes="name string:${full_text_search_key_script}:method"/>\n
</tal:block>\n
<tal:block tal:condition="is_gadget_mode">\n
<!-- Gadget mode -->\n
<input tal:define="params python: {\'%s:method\' %full_text_search_key_script:\'\',\'%s\' %full_text_search_key:\'this.value\'};"\n
type="text"\n
tal:attributes=\'value search_text;\n
name full_text_search_key;\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
</div> \n
</div>\n
\n
<!--Page pagination -->\n
<div class="listbox-footer-box listbox-page-navigation"\n
tal:condition="need_pagination">\n
<div class="pageNavigation">\n
<tal:block metal:use-macro="real_context/page_navigation_render/macros/page_navigation" />\n
</div>\n </div>\n
</div>\n
\n \n
<!-- Set a slot for additional content ? -->\n <!-- Set a slot for additional content ? -->\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