X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/a2ffd990fb4cac955d42cfe3b71d99e56a927ef0..011237c2c5c82a638e3bbd5b78196baea576a5a9:/app/views/site/_search.rhtml?ds=sidebyside diff --git a/app/views/site/_search.rhtml b/app/views/site/_search.rhtml index a9a3385c3..b57a1f984 100644 --- a/app/views/site/_search.rhtml +++ b/app/views/site/_search.rhtml @@ -1,47 +1,51 @@ -
- - - - - -
Search ResultsClose
-
-
-
- <% content_for "optionals" do %>
- Search - <% form_remote_tag(:update => :search_results_content, - :loading => "openSearchResults()", + <%= 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, params[:query] %> + <%= 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 %>