X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/0166abe88a2c082500f208d6f6be1343e6d0bedd..e23313fbd492c714cdd3eb5757d8d019e86611b0:/app/views/site/_search.html.erb diff --git a/app/views/site/_search.html.erb b/app/views/site/_search.html.erb index 8e18d0e97..3391a102b 100644 --- a/app/views/site/_search.html.erb +++ b/app/views/site/_search.html.erb @@ -1,41 +1,60 @@ -<% 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 "#", :id => "search_form" 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 %>