diff options
Diffstat (limited to 'rt/webrt/Elements/SelectSortOrder')
-rw-r--r-- | rt/webrt/Elements/SelectSortOrder | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/rt/webrt/Elements/SelectSortOrder b/rt/webrt/Elements/SelectSortOrder new file mode 100644 index 000000000..6dc900631 --- /dev/null +++ b/rt/webrt/Elements/SelectSortOrder @@ -0,0 +1,18 @@ +<SELECT NAME="<%$Name%>"> +%foreach my $order (@orders) { +<OPTION VALUE="<%$order%>" <%$order eq $Default && 'SELECTED' %>> +<% shift @order_names %> +</OPTION> +% } +</SELECT> + +<%INIT> +my @orders = qw (ASC DESC); +my @order_names = qw (Ascending Descending); + +</%INIT> + +<%ARGS> +$Name => 'SortOrder' +$Default => 'ASC' +</%ARGS> |