Sha256: 83ee35f46d1cbd6b38d5735b3aa2ba77d2a364bfdbc2422c264fc74b3cdf374e

Contents?: true

Size: 927 Bytes

Versions: 77

Compression:

Stored size: 927 Bytes

Contents

<%= search_form_for @query, url: url_for({
      action: 'index',
      size: @size,
    }.merge(search_filter_params.except(:q))
  ), remote: true, html: {class: 'search_form', id: nil} do |f| %>
  <%= hidden_field_tag :form_field_id, @form_field_id %>
  <div class="search_field">
    <button type="submit">
      <%= render_icon('search') %>
    </button>
    <%= f.search_field resource_handler.search_field_name,
      placeholder: Alchemy.t(:search),
      class: 'search_input_field',
      id: nil %>
    <%= link_to render_icon(:times, size: 'xs'), url_for({
        action: 'index',
        form_field_id: @form_field_id,
        size: @size,
        overlay: true
      }.merge(search_filter_params.except(:q))),
      remote: true,
      class: 'search_field_clear',
      title: Alchemy.t(:click_to_show_all),
      style: search_filter_params[:q].blank? ? 'display: none' : 'display: block' %>
  </div>
<% end %>

Version data entries

77 entries across 77 versions & 1 rubygems

Version Path
alchemy_cms-7.1.13 app/views/alchemy/admin/partials/_remote_search_form.html.erb
alchemy_cms-7.0.16 app/views/alchemy/admin/partials/_remote_search_form.html.erb
alchemy_cms-7.1.12 app/views/alchemy/admin/partials/_remote_search_form.html.erb
alchemy_cms-7.0.15 app/views/alchemy/admin/partials/_remote_search_form.html.erb
alchemy_cms-6.1.10 app/views/alchemy/admin/partials/_remote_search_form.html.erb
alchemy_cms-7.1.11 app/views/alchemy/admin/partials/_remote_search_form.html.erb
alchemy_cms-7.1.10 app/views/alchemy/admin/partials/_remote_search_form.html.erb
alchemy_cms-7.1.9 app/views/alchemy/admin/partials/_remote_search_form.html.erb
alchemy_cms-7.0.14 app/views/alchemy/admin/partials/_remote_search_form.html.erb
alchemy_cms-7.0.13 app/views/alchemy/admin/partials/_remote_search_form.html.erb
alchemy_cms-7.1.8 app/views/alchemy/admin/partials/_remote_search_form.html.erb
alchemy_cms-7.1.7 app/views/alchemy/admin/partials/_remote_search_form.html.erb
alchemy_cms-7.0.12 app/views/alchemy/admin/partials/_remote_search_form.html.erb
alchemy_cms-7.0.11 app/views/alchemy/admin/partials/_remote_search_form.html.erb
alchemy_cms-7.1.6 app/views/alchemy/admin/partials/_remote_search_form.html.erb
alchemy_cms-7.1.5 app/views/alchemy/admin/partials/_remote_search_form.html.erb
alchemy_cms-7.0.10 app/views/alchemy/admin/partials/_remote_search_form.html.erb
alchemy_cms-7.1.4 app/views/alchemy/admin/partials/_remote_search_form.html.erb
alchemy_cms-7.0.9 app/views/alchemy/admin/partials/_remote_search_form.html.erb
alchemy_cms-7.1.3 app/views/alchemy/admin/partials/_remote_search_form.html.erb