X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/e8809a10f5ae5ff40eb59e16c26e232ce1c544d4..397db07d65eec20de92f8c5220a4d41fc7d7ae7b:/app/views/site/_search.rhtml diff --git a/app/views/site/_search.rhtml b/app/views/site/_search.rhtml index 83411f54d..2b2fc6e31 100644 --- a/app/views/site/_search.rhtml +++ b/app/views/site/_search.rhtml @@ -1,20 +1,35 @@ -
- <% 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' %> - <% end %> - -
- Geolocation provided by npemap.org.uk, - geocoder.us, geocoder.ca and geonames.org -
-
- Enter a postcode or zip code, eg: SW15 6JH, 95472 +<% 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 %> + <% end %>
-
- Enter a place-name, eg:Essen + +<% end %> + +
+ + + + + +
Search ResultsClose
+