Commit 50001d8a authored by Jean-Paul Smets's avatar Jean-Paul Smets

2007-01-14 JPS - support of 2-tuple or 3-tuple for sorting

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@12082 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 547818b0
......@@ -100,7 +100,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n
<tal:block tal:replace="row_index" />\n
</label>\n
<div class="input" tal:attributes="id string:sort_${row_index}"\n
tal:define="sort_type python:item[min(2, len(item))]">\n
tal:define="sort_type python:((len(item) > 2) and item[2]) or \'\'">\n
<select name="field_sort_on">\n
<tal:block tal:repeat="option all_columns">\n
<option tal:content="python:option[1]"\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