X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/397db07d65eec20de92f8c5220a4d41fc7d7ae7b..c372f6cc18cd8353fdd926722c10aa308bd98790:/app/views/site/_search.rhtml diff --git a/app/views/site/_search.rhtml b/app/views/site/_search.rhtml index 2b2fc6e31..b57a1f984 100644 --- a/app/views/site/_search.rhtml +++ b/app/views/site/_search.rhtml @@ -1,35 +1,51 @@ + + <% content_for "optionals" do %>
- Search - <% form_remote_tag(:update => :search_results_content, - :loading => "openSearchResults()", - :url => { :controller => :geocoder, :action => :search } ) do %> - <%= text_field_tag :query, nil, :size => 16 %> + <%= t 'site.search.search' %> + <%= t 'site.search.where_am_i' %> +
+
+ <% form_remote_tag(:loading => "startSearch()", + :complete => "endSearch()", + :url => { :controller => :geocoder, :action => :search }) do %> + <%= text_field_tag :query, h(params[:query]) %> + <%= submit_tag t('site.search.submit_text') %> <% end %> +
+

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

+
+

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

- <% end %> - -
- - - - - -
Search ResultsClose
-
-
-