X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/397db07d65eec20de92f8c5220a4d41fc7d7ae7b..feb47bc7396f02f35dbadc42b09288f0af004fe8:/app/views/site/_search.rhtml diff --git a/app/views/site/_search.rhtml b/app/views/site/_search.rhtml index 2b2fc6e31..f18587f73 100644 --- a/app/views/site/_search.rhtml +++ b/app/views/site/_search.rhtml @@ -1,35 +1,58 @@ + + <% 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 %> + 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 'Go' %>
<% end %> +
+

Searching...

+
+

+ examples: 'Alkmaar', 'Regent Street, Cambridge', 'CB2 5AQ', + or 'post offices near Lünen' + more examples... +

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