X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/f3c751164325e01cc6c2343908d042c3a76dfda6..a7219de757755d13cbf93fd82cfbfa3c362bf516:/app/views/site/_search.rhtml diff --git a/app/views/site/_search.rhtml b/app/views/site/_search.rhtml index 8e5a8b764..b57a1f984 100644 --- a/app/views/site/_search.rhtml +++ b/app/views/site/_search.rhtml @@ -1,40 +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' %>

+

- examples: 'Alkmaar', 'Regent Street, Cambridge', 'CB2 5AQ', - or 'post offices near Lünen' - more examples... + <%= t 'site.search.search_help' %>

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