Sha256: 3e33f6fd8d58b448914c9c062973ad415da9404de5b105e117f95530eac15018
Contents?: true
Size: 986 Bytes
Versions: 21
Compression:
Stored size: 986 Bytes
Contents
<% live_search = active_scaffold_config.search.live? url_options = params_for(:action => :index).delete_if{|k,v| k == 'search'} submit_text ||= :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 do %> <%= 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_(submit_text), :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) %> <% end %>
Version data entries
21 entries across 21 versions & 1 rubygems