- <% CostQuery::Filter.all.sort { |f1,f2| f1.applies_for.to_s <=> f2.applies_for.to_s }.each do |filter| %>
-
- <% html_elements(filter).each do |element| %>
- <%=
- partial_prefix = File.join(File.basename(File.dirname(__FILE__)), 'filters')
- render :partial => File.join(partial_prefix, element[:name].to_s), :locals => {:element => element, :f => f, :query => query}
- %>
+ <% CostQuery::Filter.all_grouped.each do |label, filter_ary| %>
+ <%= l(label) %> |
+ <% filter_ary.each do |filter| %>
+
+ <% html_elements(filter).each do |element| %>
+ <%=
+ partial_prefix = File.join(File.basename(File.dirname(__FILE__)), 'filters')
+ render :partial => File.join(partial_prefix, element[:name].to_s), :locals => {:element => element, :f => f, :query => query}
+ %>
+ <% end %>
+
<% end %>
-
<% end %>
|