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

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