<% url_options = params_for(:action => :index, :escape => false, :search => nil) -%> <%= options = {:id => element_form_id(:action => 'search'), :class => "as_form search", :remote => true, :method => :get, 'data-loading' => true} form_tag url_options, options %>
    <% visibles, hiddens = visibles_and_hiddens(active_scaffold_config.field_search) %> <% visibles.each do |column| -%> <%= render :partial => 'search_attribute', :locals => {:column => column} %> <% end -%> <% unless hiddens.empty? -%>
  1. <%= as_(:optional_attributes) %>
      <% hiddens.each do |column| -%> <%= render :partial => 'search_attribute', :locals => {:column => column} %> <% end -%>
    <%= link_to_visibility_toggle(sub_section_id(:sub_section => 'further_options'), {:default_visible => false}) %>
  2. <% end -%>
<%= javascript_tag("ActiveScaffold.focus_first_element_of_form('#{element_form_id(:action => 'search')}');") %>