Sha256: f90f7ce73dda6fd0cd11e4ccb943b5369907c939de226fa75e3e9910e6064be8

Contents?: true

Size: 1.04 KB

Versions: 25

Compression:

Stored size: 1.04 KB

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">
    <label>
      <%= render_icon('search') %>
      <%= f.search_field resource_handler.search_field_name,
        placeholder: Alchemy.t(:search),
        class: 'search_input_field',
        id: nil %>
    </label>
    <%= link_to render_icon(:times, size: 'xs'), 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: search_filter_params[:q].blank? ? 'display: none' : 'display: block' %>
  </div>
<% end %>

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
alchemy_cms-4.6.7 app/views/alchemy/admin/partials/_remote_search_form.html.erb
alchemy_cms-4.6.6 app/views/alchemy/admin/partials/_remote_search_form.html.erb
alchemy_cms-4.6.5 app/views/alchemy/admin/partials/_remote_search_form.html.erb
alchemy_cms-4.5.1 app/views/alchemy/admin/partials/_remote_search_form.html.erb
alchemy_cms-4.4.5 app/views/alchemy/admin/partials/_remote_search_form.html.erb
alchemy_cms-4.6.4 app/views/alchemy/admin/partials/_remote_search_form.html.erb
alchemy_cms-4.6.3 app/views/alchemy/admin/partials/_remote_search_form.html.erb
alchemy_cms-4.6.2 app/views/alchemy/admin/partials/_remote_search_form.html.erb
alchemy_cms-4.6.1 app/views/alchemy/admin/partials/_remote_search_form.html.erb
alchemy_cms-4.6.0 app/views/alchemy/admin/partials/_remote_search_form.html.erb
alchemy_cms-4.5.0 app/views/alchemy/admin/partials/_remote_search_form.html.erb
alchemy_cms-4.4.4 app/views/alchemy/admin/partials/_remote_search_form.html.erb
alchemy_cms-4.4.3 app/views/alchemy/admin/partials/_remote_search_form.html.erb
alchemy_cms-4.4.2 app/views/alchemy/admin/partials/_remote_search_form.html.erb
alchemy_cms-4.4.1 app/views/alchemy/admin/partials/_remote_search_form.html.erb
alchemy_cms-4.4.0 app/views/alchemy/admin/partials/_remote_search_form.html.erb
alchemy_cms-4.3.2 app/views/alchemy/admin/partials/_remote_search_form.html.erb
alchemy_cms-4.2.4 app/views/alchemy/admin/partials/_remote_search_form.html.erb
alchemy_cms-4.3.1 app/views/alchemy/admin/partials/_remote_search_form.html.erb
alchemy_cms-4.2.3 app/views/alchemy/admin/partials/_remote_search_form.html.erb