Sha256: fd27421e23ac2d44c1b41fec8648af59d43c0a30fb10d2df109582996e640da3

Contents?: true

Size: 1.09 KB

Versions: 33

Compression:

Stored size: 1.09 KB

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("element_id", @element.blank? ? "" : @element.id, id: nil) %>
  <%= hidden_field_tag("content_id", @content.blank? ? "" : @content.id, id: nil) %>
  <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',
        element_id: @element.blank? ? '' : @element.id,
        content_id: @content.blank? ? '' : @content.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

33 entries across 33 versions & 1 rubygems

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