<% params_for_url = params.clone params_for_url.delete(:q) params_for_url.delete(:custom_search) %> <%= query_report_search_form(report) do |f| %> <%= hash_to_hidden_fields params_for_url %> <% report.filters.each do |filter| %> <% filter.comparators.each do |comparator| %> <%= query_report_render_filter(filter, comparator) %> <% end %> <% end %> <%= hidden_field_tag :send_as_email, false %> <%= hidden_field_tag :email_to %> <%= hidden_field_tag :subject %> <%= hidden_field_tag :message %> <%= hidden_field_tag :target_dom_id, @target_dom_id %> <%= submit_tag t('query_report.labels.search'), :class => QueryReport.config.search_button_class, :onclick => "$('#{@target_dom_id} #send_as_email').val(0);" %> <% end %>