Sha256: f789688c3e5a62a64be7e55e26f84223bc1307b94af8db40ff1d3ad9dd955850

Contents?: true

Size: 983 Bytes

Versions: 12

Compression:

Stored size: 983 Bytes

Contents

<%= search_form_for @query, url: url_for(
    action: 'index',
    options: @options.to_json,
    size: @size
  ), remote: true, html: {class: 'search_form', id: nil} do |f| %>
  <%= hidden_field_tag("element_id", @element.blank? ? "" : @element.id) %>
  <%= hidden_field_tag("content_id", @content.blank? ? "" : @content.id) %>
  <div class="search_field">
    <%= render_icon('search') %>
    <%= f.search_field resource_handler.search_field_name,
      placeholder: Alchemy.t(:search),
      class: 'search_input_field',
      id: nil %>
    <%= link_to '', url_for(
        action: 'index',
        element_id: @element.blank? ? '' : @element.id,
        content_id: @content.blank? ? '' : @content.id,
        options: @options.to_json,
        size: @size,
        overlay: true
      ),
      remote: true,
      class: 'search_field_clear',
      title: Alchemy.t(:click_to_show_all),
      style: params[:q].blank? ? 'display: none' : 'display: block' %>
  </div>
<% end %>

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
alchemy_cms-3.6.7 app/views/alchemy/admin/partials/_remote_search_form.html.erb
alchemy_cms-3.6.6 app/views/alchemy/admin/partials/_remote_search_form.html.erb
alchemy_cms-3.6.5 app/views/alchemy/admin/partials/_remote_search_form.html.erb
alchemy_cms-3.6.4 app/views/alchemy/admin/partials/_remote_search_form.html.erb
alchemy_cms-3.6.3 app/views/alchemy/admin/partials/_remote_search_form.html.erb
alchemy_cms-3.6.2 app/views/alchemy/admin/partials/_remote_search_form.html.erb
alchemy_cms-3.6.1 app/views/alchemy/admin/partials/_remote_search_form.html.erb
alchemy_cms-4.0.0.beta app/views/alchemy/admin/partials/_remote_search_form.html.erb
alchemy_cms-3.6.0 app/views/alchemy/admin/partials/_remote_search_form.html.erb
alchemy_cms-3.5.0 app/views/alchemy/admin/partials/_remote_search_form.html.erb
alchemy_cms-3.5.0.rc2 app/views/alchemy/admin/partials/_remote_search_form.html.erb
alchemy_cms-3.5.0.rc1 app/views/alchemy/admin/partials/_remote_search_form.html.erb