Commit 2482f85a authored by Chris McDonough's avatar Chris McDonough

Sort the "find objects of type" select list alpahbetically in the find form.

parent a5163bb7
...@@ -20,9 +20,15 @@ find option. ...@@ -20,9 +20,15 @@ find option.
<div class="form-element"> <div class="form-element">
<SELECT NAME="obj_metatypes:list" SIZE="4" MULTIPLE> <SELECT NAME="obj_metatypes:list" SIZE="4" MULTIPLE>
<OPTION VALUE="all" SELECTED> All types <OPTION VALUE="all" SELECTED> All types
<dtml-in all_meta_types mapping> <dtml-let sorted_meta_types="[]">
<OPTION VALUE="<dtml-var name html_quote>"> <dtml-var name> <dtml-in all_meta_types mapping>
</dtml-in> <dtml-call "sorted_meta_types.append(name)">
</dtml-in>
<dtml-call "sorted_meta_types.sort()">
<dtml-in sorted_meta_types>
<OPTION VALUE="<dtml-var sequence-item html_quote>"><dtml-var sequence-item>
</dtml-in>
</dtml-let>
</SELECT> </SELECT>
</div> </div>
</TD> </TD>
......
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