From f7e1aca268012151ef31d0500eaa54d5e8139192 Mon Sep 17 00:00:00 2001 From: "p.tessenow" Date: Wed, 30 Jun 2010 16:29:55 +0000 Subject: [PATCH] separate between entries and issues in filters view git-svn-id: https://dev.finn.de/svn/cockpit/branches/reporting_merge@1280 7926756e-e54e-46e6-9721-ed318f58905e --- app/views/cost_reports/_filters.rhtml | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/app/views/cost_reports/_filters.rhtml b/app/views/cost_reports/_filters.rhtml index 9c9ea19e6f..3775944da0 100644 --- a/app/views/cost_reports/_filters.rhtml +++ b/app/views/cost_reports/_filters.rhtml @@ -10,15 +10,18 @@ - <% 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| %> + + <% 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 %>

<%= l(label) %>