<% live_search = active_scaffold_config.search.live? -%> <% url_options = params_for(:action => :index).delete_if{|k,v| k == 'search'} -%> <%= options = {:id => element_form_id(:action => 'search'), :class => "as_form search", :remote => true, :method => :get} options['data-loading'] = true unless live_search form_tag url_options, options %> <%= text_field_tag :search, search_params, :class => 'text-input', :id => search_input_id, :size => 50, :autocomplete => :off %> <%= submit_tag as_(:search), :class => "submit" %> <%= link_to as_(:reset), url_for(url_options.merge(:search => '')), :class => 'as_cancel', :remote => true, :data => {:refresh => true} %> <%= loading_indicator_tag(:action => :search) %>