Sha256: ed9c7688bbdf625eb759b93d3b71f926a39928b0a372025916b35fdc826815aa

Contents?: true

Size: 1.05 KB

Versions: 34

Compression:

Stored size: 1.05 KB

Contents

<%- url ||= resource_url_proxy.url_for({ action: 'index' }.merge(search_filter_params.except(:q, :page))) -%>

<%= search_form_for @query, url: url, class: 'search_form' do |f| %>
  <div class="search_field">
    <button type="submit">
      <%= render_icon('search') %>
    </button>
    <%= f.search_field resource_handler.search_field_name,
      class: 'search_input_field',
      placeholder: Alchemy.t(:search) %>
    <% local_assigns.fetch(:additional_query_fields, []).each do |field| %>
      <%= f.hidden_field field, id: nil %>
    <% end %>
    <%= link_to render_icon(:times, size: 'xs'), url,
        class: 'search_field_clear',
        id: 'search_field_clear',
        title: Alchemy.t(:click_to_show_all),
        style: search_filter_params.fetch(:q, {}).fetch(resource_handler.search_field_name, '').present? ? 'display: block' : 'display: none' %>
    <% local_assigns.fetch(:additional_params, []).each do |additional_param| %>
      <%= hidden_field_tag additional_param, search_filter_params[additional_param], id: nil %>
    <% end %>
  </div>
<% end %>

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
alchemy_cms-5.3.8 app/views/alchemy/admin/partials/_search_form.html.erb
alchemy_cms-5.3.7 app/views/alchemy/admin/partials/_search_form.html.erb
alchemy_cms-5.3.6 app/views/alchemy/admin/partials/_search_form.html.erb
alchemy_cms-5.3.5 app/views/alchemy/admin/partials/_search_form.html.erb
alchemy_cms-5.3.4 app/views/alchemy/admin/partials/_search_form.html.erb
alchemy_cms-5.3.3 app/views/alchemy/admin/partials/_search_form.html.erb
alchemy_cms-5.3.2 app/views/alchemy/admin/partials/_search_form.html.erb
alchemy_cms-5.3.1 app/views/alchemy/admin/partials/_search_form.html.erb
alchemy_cms-5.3.0 app/views/alchemy/admin/partials/_search_form.html.erb
alchemy_cms-5.2.7 app/views/alchemy/admin/partials/_search_form.html.erb
alchemy_cms-5.2.6 app/views/alchemy/admin/partials/_search_form.html.erb
alchemy_cms-5.1.10 app/views/alchemy/admin/partials/_search_form.html.erb
alchemy_cms-5.2.5 app/views/alchemy/admin/partials/_search_form.html.erb
alchemy_cms-5.1.9 app/views/alchemy/admin/partials/_search_form.html.erb
alchemy_cms-5.2.4 app/views/alchemy/admin/partials/_search_form.html.erb
alchemy_cms-5.1.8 app/views/alchemy/admin/partials/_search_form.html.erb
alchemy_cms-5.1.7 app/views/alchemy/admin/partials/_search_form.html.erb
alchemy_cms-5.2.3 app/views/alchemy/admin/partials/_search_form.html.erb
alchemy_cms-5.1.6 app/views/alchemy/admin/partials/_search_form.html.erb
alchemy_cms-5.2.2 app/views/alchemy/admin/partials/_search_form.html.erb