Sha256: 096172c084b911f0228f704e3f8be8adea9bf541363b83f09a5aeac29069b953

Contents?: true

Size: 971 Bytes

Versions: 26

Compression:

Stored size: 971 Bytes

Contents

<%= form_tag(
  url_for({
    action: 'index',
    options: @options.to_json,
    size: @size
  }),
  remote: true,
  method: 'get'
) do %>
  <%= 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') %>
    <%= text_field_tag :query,
      params['query'],
      class: 'thin_border',
      id: 'search_input_field',
      placeholder: _t(:search) %>
    <%= 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',
      id: 'search_field_clear',
      title: _t(:click_to_show_all),
      style: params[:query].nil? ? 'display: none' : 'display: block' %>
  </div>
<% end %>

Version data entries

26 entries across 26 versions & 2 rubygems

Version Path
alchemy_cms-3.2.1 app/views/alchemy/admin/partials/_remote_search_form.html.erb
alchemy_cms-3.1.3 app/views/alchemy/admin/partials/_remote_search_form.html.erb
lc_alchemy_cms-3.2.1 app/views/alchemy/admin/partials/_remote_search_form.html.erb
lc_alchemy_cms-3.2.0 app/views/alchemy/admin/partials/_remote_search_form.html.erb
alchemy_cms-3.2.0 app/views/alchemy/admin/partials/_remote_search_form.html.erb
alchemy_cms-3.2.0.rc1 app/views/alchemy/admin/partials/_remote_search_form.html.erb
alchemy_cms-3.2.0.beta app/views/alchemy/admin/partials/_remote_search_form.html.erb
alchemy_cms-3.1.1 app/views/alchemy/admin/partials/_remote_search_form.html.erb
alchemy_cms-3.0.4 app/views/alchemy/admin/partials/_remote_search_form.html.erb
alchemy_cms-3.1.0 app/views/alchemy/admin/partials/_remote_search_form.html.erb
alchemy_cms-3.1.0.rc3 app/views/alchemy/admin/partials/_remote_search_form.html.erb
alchemy_cms-3.1.0.rc2 app/views/alchemy/admin/partials/_remote_search_form.html.erb
alchemy_cms-3.1.0.rc1 app/views/alchemy/admin/partials/_remote_search_form.html.erb
alchemy_cms-3.1.0.beta6 app/views/alchemy/admin/partials/_remote_search_form.html.erb
alchemy_cms-3.1.0.beta5 app/views/alchemy/admin/partials/_remote_search_form.html.erb
alchemy_cms-3.1.0.beta4 app/views/alchemy/admin/partials/_remote_search_form.html.erb
alchemy_cms-3.0.3 app/views/alchemy/admin/partials/_remote_search_form.html.erb
alchemy_cms-3.1.0.beta3 app/views/alchemy/admin/partials/_remote_search_form.html.erb
alchemy_cms-3.1.0.beta2 app/views/alchemy/admin/partials/_remote_search_form.html.erb
alchemy_cms-3.1.0.beta1 app/views/alchemy/admin/partials/_remote_search_form.html.erb