X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/6ce5986a5229408757cfdccaed3d5995376b0511..4259ca6572808ba26c39eb436f3ea37cba4241cd:/app/views/site/_search.html.erb diff --git a/app/views/site/_search.html.erb b/app/views/site/_search.html.erb index 8e18d0e97..dcb7301d9 100644 --- a/app/views/site/_search.html.erb +++ b/app/views/site/_search.html.erb @@ -1,17 +1,66 @@ -<% content_for "optionals" do %> +<% content_for :optionals do %>
- <%= t 'site.search.search' %> - <%= t 'site.search.where_am_i' %> -
+ <%= t 'site.search.where_am_i' %> +

<%= t 'site.search.search' %>

+
- <% form_remote_tag(:loading => "startSearch()", - :complete => "endSearch()", - :url => { :controller => :geocoder, :action => :search }, - :html => { :method => "get", :action => url_for(:action => "index") }) do %> - <%= text_field_tag :query, h(params[:query]) %> + <%= form_tag({ :controller => :geocoder, :action => :search }, + { :id => "search_form", :remote => true, :method => "get", :action => url_for(:action => "index") }) do %> + <%= text_field_tag :query, h(params[:query]), :tabindex => "1" %> <%= submit_tag t('site.search.submit_text') %> <% end %>

- <%= t 'site.search.search_help' %> + <%= raw(t 'site.search.search_help') %>

<% end %>