Sha256: 721dce526fa9c1c7d903f67baa505a248b18444a88682ef200850a4a1698602a

Contents?: true

Size: 989 Bytes

Versions: 9

Compression:

Stored size: 989 Bytes

Contents

<%= search_form_for @query, url: url_for(
    action: 'index',
    options: options_from_params,
    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_from_params,
        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

9 entries across 9 versions & 1 rubygems

Version Path
alchemy_cms-4.0.6 app/views/alchemy/admin/partials/_remote_search_form.html.erb
alchemy_cms-4.0.5 app/views/alchemy/admin/partials/_remote_search_form.html.erb
alchemy_cms-4.0.4 app/views/alchemy/admin/partials/_remote_search_form.html.erb
alchemy_cms-4.0.3 app/views/alchemy/admin/partials/_remote_search_form.html.erb
alchemy_cms-4.0.2 app/views/alchemy/admin/partials/_remote_search_form.html.erb
alchemy_cms-4.0.1 app/views/alchemy/admin/partials/_remote_search_form.html.erb
alchemy_cms-4.0.0 app/views/alchemy/admin/partials/_remote_search_form.html.erb
alchemy_cms-4.0.0.rc2 app/views/alchemy/admin/partials/_remote_search_form.html.erb
alchemy_cms-4.0.0.rc1 app/views/alchemy/admin/partials/_remote_search_form.html.erb