Commit afb67bb0 authored by Ivan Tyagov's avatar Ivan Tyagov

show current rows (start - stop) only if number of total rows > 0.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@38270 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 4d035e24
...@@ -128,18 +128,23 @@ ...@@ -128,18 +128,23 @@
<div class="listbox-number-of-records"\n <div class="listbox-number-of-records"\n
metal:define-macro="listbox_number_of_records">\n metal:define-macro="listbox_number_of_records">\n
\n \n
<!-- listbox start - stop number -->\n
<tal:block tal:condition="python: total_line > 0">\n
<span class="listbox-current-page-start-number"\n <span class="listbox-current-page-start-number"\n
tal:content="current_page_start"/> - \n tal:content="current_page_start"/> - \n
<span class="listbox-current-page-stop-number"\n <span class="listbox-current-page-stop-number"\n
tal:content="current_page_stop"/> \n tal:content="current_page_stop"/> \n
<span i18n:translate="" i18n:domain="ui">of</span>\n <span i18n:translate="" i18n:domain="ui">of</span>\n
</tal:block>\n
\n \n
<!-- listbox total rows number -->\n
<span class="listbox-current-page-total-number"\n <span class="listbox-current-page-total-number"\n
tal:attributes="class python: test(is_default_listbox_field, \'listbox-current-page-total-number\', \'listbox-current-page-total-number %s-current-page-total-number\' %field_id)"\n tal:attributes="class python: test(is_default_listbox_field, \'listbox-current-page-total-number\', \'listbox-current-page-total-number %s-current-page-total-number\' %field_id)"\n
i18n:translate="" i18n:domain="ui">\n i18n:translate="" i18n:domain="ui">\n
<tal:block tal:replace="total_line" i18n:name="number">0</tal:block> records\n <tal:block tal:replace="total_line" i18n:name="number">0</tal:block> records\n
</span>\n </span>\n
\n \n
<!-- listbox selected rows number -->\n
<span class="listbox-current-item-number"\n <span class="listbox-current-item-number"\n
tal:condition="show_select_column"\n tal:condition="show_select_column"\n
tal:attributes="class string:${field_id}-current-item-number"\n tal:attributes="class string:${field_id}-current-item-number"\n
......
1008 1010
\ 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