Commit 0a06eada authored by Kevin Deldycke's avatar Kevin Deldycke

Basic support of per-column search field

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@8641 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent e3ac98ad
......@@ -70,7 +70,8 @@
show_select_column here/showSelectColumn;\n
show_search_line here/showSearchLine;\n
">\n
<!-- ListBox starts here. -->\n
\n
<!-- ListBox starts here -->\n
<input type="hidden" name="list_selection_name" value="default" tal:attributes="value selection_name" />\n
<input tal:condition="md5_string" type="hidden" name="md5_object_uid_list" value="checksum" tal:attributes="value md5_string" />\n
\n
......@@ -106,12 +107,7 @@
current_page_max python: listbox_max_lines * current_page;\n
current_page_start python: (listbox_max_lines * (current_page - 1)) + 1;\n
current_page_stop python: (total_line < current_page_max) and total_line or current_page_max;">\n
<tal:block condition="python: total_line > 0">\n
Resultats\n
<em tal:content="current_page_start"/> -\n
<em tal:content="current_page_stop"/>\n
sur un total de <em tal:content="total_line"/>.\n
</tal:block>\n
<tal:block condition="python: total_line > 0">Resultats <em tal:content="current_page_start"/> - <em tal:content="current_page_stop"/> sur un total de <em tal:content="total_line"/>.</tal:block>\n
<span tal:condition="python: total_line == 0" class="warning">No result !</span>\n
</span>\n
</div>\n
......@@ -137,11 +133,35 @@
tal:attributes="src string:${portal_url_string}/images/1toparrow.png"\n
i18n:domain="ui" i18n:attributes="title"/>\n
</th>\n
<th tal:condition="not: sql" tal:content="title"\n
i18n:domain="ui" i18n:translate=""/>\n
<th tal:condition="not: sql" tal:content="title" i18n:domain="ui" i18n:translate=""/>\n
</tal:block>\n
</tal:block>\n
</tr>\n
\n
\n
\n
\n
\n
\n
\n
\n
<tr tal:condition="show_search_line">\n
<td tal:repeat="value here/getSearchValueList">\n
<tal:block tal:define="alias python: value[0];\n
param python: value[1];\n
search_field python: value[2]"\n
tal:condition="alias">\n
<tal:block\n
tal:condition="python: search_field is not None"\n
tal:replace="structure python: search_field.render(value=param, key=alias)"/>\n
<input tal:condition="python: search_field is None" name="id" size="8" value=""\n
tal:attributes="name alias; value param"/>\n
</tal:block>\n
</td>\n
\n
</tr>\n
\n
\n
</thead>\n
\n
<tfoot tal:condition="python: int(here.total_size) > int(here.getMaxLineNumber())">\n
......@@ -150,7 +170,7 @@
<a class="pageNavigation"\n
tal:condition="python: here.current_page > 0"\n
href="portal_selections/firstPage:method"\n
title="First Page: page 1">\xe2\x86\x90</a>\n
title="First Page: page 1">|&lt;</a>\n
<a class="pageNavigation"\n
href="portal_selections/previousPage:method"\n
tal:condition="python: here.current_page > 0"\n
......@@ -179,7 +199,7 @@
<a class="pageNavigation"\n
tal:condition="python: here.current_page + 1 < here.total_pages"\n
href="portal_selections/lastPage:method"\n
tal:attributes="title python: \'Last Page: page \' + str(here.total_pages)">\xe2\x86\x92</a>\n
tal:attributes="title python: \'Last Page: page \' + str(here.total_pages)">&gt;|</a>\n
</td>\n
</tr>\n
</tfoot>\n
......
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