<% url_options ||= params_for(:action => :index, :search => nil) -%> <%= options = {:id => element_form_id(:action => 'search'), :class => "as_form search", :remote => xhr ||= request.xhr?, :method => :get, 'data-loading' => true} form_tag url_options, options %>
    <% visibles, hiddens = visibles_and_hiddens(active_scaffold_config.field_search) %> <% visibles.each do |column| -%>
  1. <%= search_attribute(column, @record) %>
  2. <% end -%> <% unless hiddens.empty? -%>
  3. <% further_options_id = sub_section_id(:sub_section => 'further_options') %>
    <%= as_(:optional_attributes) %> <%= link_to_visibility_toggle(further_options_id, {:default_visible => false}) %>
  4. <% end -%>