Sha256: 5337bed2eb0c2f6677d9d990ce36c0d47b06a1b426bdc9c958a1a6e242c5e71b

Contents?: true

Size: 924 Bytes

Versions: 9

Compression:

Stored size: 924 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 => true,
           :'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} %>
  <%= loading_indicator_tag(:action => :search) %>
</form>

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
active_scaffold-3.4.12 app/views/active_scaffold_overrides/_search.html.erb
active_scaffold-3.4.11 app/views/active_scaffold_overrides/_search.html.erb
active_scaffold-3.4.10 app/views/active_scaffold_overrides/_search.html.erb
active_scaffold-3.4.9 app/views/active_scaffold_overrides/_search.html.erb
active_scaffold-3.4.8 app/views/active_scaffold_overrides/_search.html.erb
active_scaffold-3.4.7 app/views/active_scaffold_overrides/_search.html.erb
active_scaffold-3.4.5 app/views/active_scaffold_overrides/_search.html.erb
active_scaffold-3.4.4 app/views/active_scaffold_overrides/_search.html.erb
active_scaffold-3.4.3 app/views/active_scaffold_overrides/_search.html.erb