Commit 089ec50d authored by Ivan Tyagov's avatar Ivan Tyagov

Show linkwith list bactions & number of selected rows (if any).

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@38050 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent f5bbd5f9
...@@ -161,14 +161,31 @@ ...@@ -161,14 +161,31 @@
<div class="listbox-content">\n <div class="listbox-content">\n
\n \n
<div class="listbox-head">\n <div class="listbox-head">\n
<div class="listbox-head-title" style="">\n <div class="listbox-head-title"\n
<span tal:replace="here/getTitle" />\n tal:define="show_list_action_link python: here.field.get_value(\'list_action\')">\n
\n
<a tal:condition="show_list_action_link"\n
tal:attributes="class string:${field_id}_title; \n
href here/getListActionUrl">\n
<span i18n:translate="" \n
i18n:domain="ui" tal:content="here/getTitle" />\n
</a>\n
<tal:block tal:condition="not: show_list_action_link">\n
<span i18n:translate="" \n
i18n:domain="ui" tal:content="here/getTitle" />\n
</tal:block>\n
</div>\n </div>\n
\n \n
<!--Show search result -->\n <!--Show search result -->\n
<div tal:condition="python: total_line > 0" \n <div tal:condition="python: total_line > 0" \n
class="listbox-head-results">\n class="listbox-head-results">\n
<span tal:replace="structure python: real_context.Base_translateString(\'Results <em>${start} - ${stop}</em> of <em>${total}</em>.\', mapping=dict(start=current_page_start, stop=current_page_stop, total=total_line))"/>\n <span tal:content="structure python: real_context.Base_translateString(\' <em>${start} - ${stop}</em> of <em>${total}</em> records\', mapping=dict(start=current_page_start, stop=current_page_stop, total=total_line))"/>\n
\n
<span id="listbox_item_number" class="listbox_item_number"\n
tal:attributes="id string:${field_id}_item_number"\n
tal:condition="show_select_column"\n
i18n:translate="" i18n:domain="ui"> - <tal:block tal:replace="python: len(here.getCheckedUidList())" i18n:name="number">0</tal:block> items selected</span>\n
\n
</div>\n </div>\n
</div>\n </div>\n
\n \n
......
...@@ -188,7 +188,9 @@ div.listbox-head{\n ...@@ -188,7 +188,9 @@ div.listbox-head{\n
div.listbox-head div.listbox-head-title{\n div.listbox-head div.listbox-head-title{\n
float:left;\n float:left;\n
width:auto;\n width:auto;\n
\n }\n
div.listbox-head a, div.listbox-head span{\n
font-weight: bold;\n
}\n }\n
\n \n
div.listbox-head div.listbox-head-results{\n div.listbox-head div.listbox-head-results{\n
...@@ -198,7 +200,6 @@ div.listbox-head div.listbox-head-results{\n ...@@ -198,7 +200,6 @@ div.listbox-head div.listbox-head-results{\n
text-align:right;\n text-align:right;\n
}\n }\n
\n \n
\n
div.listbox-body{\n div.listbox-body{\n
width:auto;\n width:auto;\n
}\n }\n
......
1527 1528
\ 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