% 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| -%>
- <%= search_attribute(column, @record) %>
<% end -%>
<% unless hiddens.empty? -%>
-
<% further_options_id = sub_section_id(:sub_section => 'further_options') %>
<%= as_(:optional_attributes) %>
<%= link_to_visibility_toggle(further_options_id, {:default_visible => false}) %>
<% hiddens.each do |column| -%>
- <%= search_attribute(column, @record) %>
<% end -%>
<% end -%>