Sha256: 777816062e8bef0c71e1f3eeb05cd753a03230397941670507f822deeba22322

Contents?: true

Size: 974 Bytes

Versions: 12

Compression:

Stored size: 974 Bytes

Contents

<% 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#{' live' if live_search}",
           :remote => xhr ||= request.xhr?,
           :'data-loading' => true,
           :method => :get}
  form_tag url_options, options %>
  <%= search_field_tag :search, (search_params if search_params.is_a? String), :class => 'text-input', :id => search_input_id, :size => 50, :autocomplete => :off, :placeholder => as_(live_search ? :live_search : :search_terms) %>
  <%= submit_tag as_(:search), :class => "submit", :style => ('display:none;' if live_search) %>
  <%= link_to as_(:reset), url_for(url_options.merge(:search => '')), :class => 'as_cancel reset', :remote => true, :data => {:refresh => true} unless local_assigns[:skip_reset] %>
  <%= loading_indicator_tag(:action => :search) %>
</form>

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
active_scaffold-3.4.23 app/views/active_scaffold_overrides/_search.html.erb
active_scaffold-3.4.22 app/views/active_scaffold_overrides/_search.html.erb
active_scaffold-3.4.21.1 app/views/active_scaffold_overrides/_search.html.erb
active_scaffold-3.4.21 app/views/active_scaffold_overrides/_search.html.erb
active_scaffold-3.4.20 app/views/active_scaffold_overrides/_search.html.erb
active_scaffold-3.4.19 app/views/active_scaffold_overrides/_search.html.erb
active_scaffold-3.4.18.1 app/views/active_scaffold_overrides/_search.html.erb
active_scaffold-3.4.18 app/views/active_scaffold_overrides/_search.html.erb
active_scaffold-3.4.17 app/views/active_scaffold_overrides/_search.html.erb
active_scaffold-3.4.16 app/views/active_scaffold_overrides/_search.html.erb
active_scaffold-3.4.14 app/views/active_scaffold_overrides/_search.html.erb
active_scaffold-3.4.13 app/views/active_scaffold_overrides/_search.html.erb