Sha256: 1a6741850e98e3b52d6ff6dac7d0f140fe9f883361fc34594a153119b02bd182

Contents?: true

Size: 634 Bytes

Versions: 7

Compression:

Stored size: 634 Bytes

Contents

<%
  skip_url = SkipEmbedded::InitialSettings["skip_collaboration"]["skip_url"]
  endpoint = URI.join(skip_url, "/search/full_text_search").to_s
  query_name = 'full_text_query'
  search_label = _("Input keyword to search")
%>

<div id="search">
  <% form_tag(endpoint, :method => 'get', :class => 'skip_fulltext_search') do -%>
    <%= text_field_tag(query_name, search_label, :class => "labeled-field", :size => 40) %>
    <%= submit_tag _('Search') %>
  <% end -%>
</div>

<% content_for :javascript_initializer do -%>
  jQuery("#search input.labeled-field").labeledTextField(<%= {:message => search_label}.to_json %>);
<% end -%>

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
openskip-skip_embedded-0.9.13 generators/skip_embedded_init/templates/app/views/shared/_skip_full_text_search_form.html.erb
openskip-skip_embedded-0.9.14 generators/skip_embedded_init/templates/app/views/shared/_skip_full_text_search_form.html.erb
openskip-skip_embedded-0.9.15 generators/skip_embedded_init/templates/app/views/shared/_skip_full_text_search_form.html.erb
openskip-skip_embedded-0.9.16 generators/skip_embedded_init/templates/app/views/shared/_skip_full_text_search_form.html.erb
openskip-skip_embedded-0.9.17 generators/skip_embedded_init/templates/app/views/shared/_skip_full_text_search_form.html.erb
openskip-skip_embedded-0.9.18 generators/skip_embedded_init/templates/app/views/shared/_skip_full_text_search_form.html.erb
openskip-skip_embedded-0.9.19 generators/skip_embedded_init/templates/app/views/shared/_skip_full_text_search_form.html.erb