<%= search_form_for report.search, :url => url_for, :html => {:method => :get, :class => 'form-inline'} do |f| %> <% report.filters.each do |filter| %> <% filter.comparators.each do |comparator| %> <%= query_report_render_filter(filter, comparator) %> <% end %> <% end %> <%= f.submit 'Search', :class => 'btn btn-blue' %> <% end %>