Sha256: 22dd719bde9cb12cf261ddae36360a3075f3a2bb77565e5e2464f245cb07dbc0

Contents?: true

Size: 1.05 KB

Versions: 28

Compression:

Stored size: 1.05 KB

Contents

<%= form_tag(
  url_for({
    :action => 'index',
    :options => @options,
    :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"
    ) %>
    <%= link_to(
      "",
      url_for({
        :action => 'index',
        :element_id => @element.blank? ? "" : @element.id,
        :content_id => @content.blank? ? "" : @content.id,
        :options => @options,
        :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>
  <%= submit_tag t('search'), :name => nil, :class => 'button' %>
<% end %>

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
alchemy_cms-2.3.2 app/views/alchemy/admin/partials/_remote_search_form.html.erb
alchemy_cms-2.2.4 app/views/alchemy/admin/partials/_remote_search_form.html.erb
alchemy_cms-2.4.1 app/views/alchemy/admin/partials/_remote_search_form.html.erb
alchemy_cms-2.5.0.b5 app/views/alchemy/admin/partials/_remote_search_form.html.erb
alchemy_cms-2.5.0.b2 app/views/alchemy/admin/partials/_remote_search_form.html.erb
alchemy_cms-2.4.0 app/views/alchemy/admin/partials/_remote_search_form.html.erb
alchemy_cms-2.4.rc4 app/views/alchemy/admin/partials/_remote_search_form.html.erb
alchemy_cms-2.4.rc2 app/views/alchemy/admin/partials/_remote_search_form.html.erb
alchemy_cms-2.4.rc1 app/views/alchemy/admin/partials/_remote_search_form.html.erb
alchemy_cms-2.3.1 app/views/alchemy/admin/partials/_remote_search_form.html.erb
alchemy_cms-2.4.beta2 app/views/alchemy/admin/partials/_remote_search_form.html.erb
alchemy_cms-2.2.3.2 app/views/alchemy/admin/partials/_remote_search_form.html.erb
alchemy_cms-2.2.3.1 app/views/alchemy/admin/partials/_remote_search_form.html.erb
alchemy_cms-2.3.0 app/views/alchemy/admin/partials/_remote_search_form.html.erb
alchemy_cms-2.3.rc5 app/views/alchemy/admin/partials/_remote_search_form.html.erb
alchemy_cms-2.2.2 app/views/alchemy/admin/partials/_remote_search_form.html.erb
alchemy_cms-2.2.1 app/views/alchemy/admin/partials/_remote_search_form.html.erb
alchemy_cms-2.2.0 app/views/alchemy/admin/partials/_remote_search_form.html.erb
alchemy_cms-2.2.rc15 app/views/alchemy/admin/partials/_remote_search_form.html.erb
alchemy_cms-2.2.rc14 app/views/alchemy/admin/partials/_remote_search_form.html.erb