Sha256: 75b672b9a42dc9115d9f6f9d339a56623d52c3a6e6050e758da20a6e389e43a7

Contents?: true

Size: 995 Bytes

Versions: 15

Compression:

Stored size: 995 Bytes

Contents

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

15 entries across 15 versions & 1 rubygems

Version Path
alchemy_cms-5.0.10 app/views/alchemy/admin/partials/_remote_search_form.html.erb
alchemy_cms-5.0.9 app/views/alchemy/admin/partials/_remote_search_form.html.erb
alchemy_cms-5.0.8 app/views/alchemy/admin/partials/_remote_search_form.html.erb
alchemy_cms-5.0.7 app/views/alchemy/admin/partials/_remote_search_form.html.erb
alchemy_cms-5.0.6 app/views/alchemy/admin/partials/_remote_search_form.html.erb
alchemy_cms-5.0.5 app/views/alchemy/admin/partials/_remote_search_form.html.erb
alchemy_cms-5.0.4 app/views/alchemy/admin/partials/_remote_search_form.html.erb
alchemy_cms-5.0.3 app/views/alchemy/admin/partials/_remote_search_form.html.erb
alchemy_cms-5.0.2 app/views/alchemy/admin/partials/_remote_search_form.html.erb
alchemy_cms-5.0.1 app/views/alchemy/admin/partials/_remote_search_form.html.erb
alchemy_cms-5.0.0 app/views/alchemy/admin/partials/_remote_search_form.html.erb
alchemy_cms-5.0.0.rc2 app/views/alchemy/admin/partials/_remote_search_form.html.erb
alchemy_cms-5.0.0.rc1 app/views/alchemy/admin/partials/_remote_search_form.html.erb
alchemy_cms-5.0.0.beta2 app/views/alchemy/admin/partials/_remote_search_form.html.erb
alchemy_cms-5.0.0.beta1 app/views/alchemy/admin/partials/_remote_search_form.html.erb