Sha256: e9eb4ac83d5717a450d3f59a03a4cb634f1bd1c88a727aed2d70d69af2281829

Contents?: true

Size: 777 Bytes

Versions: 27

Compression:

Stored size: 777 Bytes

Contents

<% if base_class.respond_to? :fields_for_search %>
  <%
    field_search = base_class.fields_for_search.join("_or_")
    field_search += "_cont"
  %>
  <%= search_form_for @query, url: url, class: 'search_form' do |f| %>
    <div class="search_field">
      <%= render_icon('search') %>
      <%= f.search_field field_search.to_sym,
                         class: 'search_input_field',
                         placeholder: Alchemy.t(:search) %>
      <%= link_to render_icon(:times, size: 'xs'), url,
                  class: 'search_field_clear',
                  id: 'search_field_clear',
                  title: Alchemy.t(:click_to_show_all),
                  style: params.fetch(:q, {}).present? ? 'display: block' : 'display: none' %>
    </div>
  <% end %>
<% end %>

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
alchemy-custom-model-0.1.6 app/views/alchemy/custom/model/admin/base/_search_box.html.erb
alchemy-custom-model-0.1.5 app/views/alchemy/custom/model/admin/base/_search_box.html.erb
alchemy-custom-model-0.1.4 app/views/alchemy/custom/model/admin/base/_search_box.html.erb
alchemy-custom-model-0.1.3 app/views/alchemy/custom/model/admin/base/_search_box.html.erb
alchemy-custom-model-0.1.2 app/views/alchemy/custom/model/admin/base/_search_box.html.erb
alchemy-custom-model-0.1.1 app/views/alchemy/custom/model/admin/base/_search_box.html.erb
alchemy-custom-model-0.1.0 app/views/alchemy/custom/model/admin/base/_search_box.html.erb