X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/f7f2b7482d7bcfc7905746cee650ceb51c4e8e01..168036d3a20157702eb9b4f964ddf56366086c82:/app/views/site/_search.rhtml diff --git a/app/views/site/_search.rhtml b/app/views/site/_search.rhtml index 83411f54d..b57a1f984 100644 --- a/app/views/site/_search.rhtml +++ b/app/views/site/_search.rhtml @@ -1,20 +1,51 @@ -
- <% form_tag :controller => 'geocoder', :action => 'search' do %> - <%= hidden_field_tag 'next_controller', @controller.controller_name %> - <%= hidden_field_tag 'next_action', @controller.action_name %> - <%= text_field 'query', 'postcode' %> - <%= text_field 'query', 'place_name'%> - <%= submit_tag 'Search' %> + -
- Geolocation provided by npemap.org.uk, - geocoder.us, geocoder.ca and geonames.org -
-
- Enter a postcode or zip code, eg: SW15 6JH, 95472 -
-
- Enter a place-name, eg:Essen +<% content_for "optionals" do %> +
+ <%= 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 %>