Sha256: 69e3454ad30760bc4f9f0913ea322c049d98b435fd8cd8e0746882260d92ad9c
Contents?: true
Size: 1.35 KB
Versions: 9
Compression:
Stored size: 1.35 KB
Contents
<% url_options = params_for(:action => :index, :search => nil) -%> <%= options = {:id => element_form_id(:action => 'search'), :class => "as_form search", :remote => true, :method => :get, 'data-loading' => true} form_tag url_options, options %> <ol class="form"> <% visibles, hiddens = visibles_and_hiddens(active_scaffold_config.field_search) %> <% visibles.each do |column| -%> <li class="form-element"><%= search_attribute(column, @record) %></li> <% end -%> <% unless hiddens.empty? -%> <li class="sub-section"> <% further_options_id = sub_section_id(:sub_section => 'further_options') %> <h5> <%= as_(:optional_attributes) %> <%= link_to_visibility_toggle(further_options_id, {:default_visible => false}) %> </h5> <ol id ="<%= further_options_id %>" class="form" style="display:none;"> <% hiddens.each do |column| -%> <li class="form-element"><%= search_attribute(column, @record) %></li> <% end -%> </ol> </li> <% end -%> </ol> <p class="form-footer"> <%= submit_tag as_(:search), :class => "submit" %> <%= link_to as_(:reset), url_for(url_options.merge(:search => '')), :class => 'as_cancel reset', :remote => true, :data => {:refresh => true} %> <%= loading_indicator_tag(:action => :search) %> </p> </form>
Version data entries
9 entries across 9 versions & 1 rubygems