Sha256: fa77b6685827f613d232a5f488096b2e8fb02542b4cf15fb662651167978d86a

Contents?: true

Size: 908 Bytes

Versions: 10

Compression:

Stored size: 908 Bytes

Contents

<%- url ||= resource_url_proxy.url_for(action: 'index') -%>

<%= search_form_for @query, url: url, class: 'search_form' do |f| %>
  <div class="search_field">
    <%= render_icon('search') %>
    <%= f.search_field resource_handler.search_field_name,
      id: 'search_input_field',
      placeholder: Alchemy.t(:search) %>
    <% local_assigns.fetch(:additional_query_fields, []).each do |field| %>
      <%= f.hidden_field field %>
    <% end %>
    <%= link_to '', url,
        class: 'search_field_clear',
        id: 'search_field_clear',
        title: Alchemy.t(:click_to_show_all),
        style: 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, params[additional_param] %>
    <% end %>
  </div>
<% end %>

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
alchemy_cms-3.4.2 app/views/alchemy/admin/partials/_search_form.html.erb
alchemy_cms-3.4.1 app/views/alchemy/admin/partials/_search_form.html.erb
alchemy_cms-3.3.3 app/views/alchemy/admin/partials/_search_form.html.erb
alchemy_cms-3.3.2 app/views/alchemy/admin/partials/_search_form.html.erb
alchemy_cms-3.4.0 app/views/alchemy/admin/partials/_search_form.html.erb
alchemy_cms-3.4.0.rc1 app/views/alchemy/admin/partials/_search_form.html.erb
alchemy_cms-3.3.1 app/views/alchemy/admin/partials/_search_form.html.erb
alchemy_cms-3.3.0 app/views/alchemy/admin/partials/_search_form.html.erb
alchemy_cms-3.3.0.rc2 app/views/alchemy/admin/partials/_search_form.html.erb
alchemy_cms-3.3.0.rc1 app/views/alchemy/admin/partials/_search_form.html.erb