X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/318c7a9854f31bebd39eb8e90fbf11a95bfa8995..5c74a6517cbc5aa4aa958abd0737da8892f58a45:/app/views/site/_search.html.erb diff --git a/app/views/site/_search.html.erb b/app/views/site/_search.html.erb index 31b5af16f..3391a102b 100644 --- a/app/views/site/_search.html.erb +++ b/app/views/site/_search.html.erb @@ -1,59 +1,60 @@ -<% content_for "optionals" do %> +<% content_for :optionals do %>
<%= t 'site.search.where_am_i' %>

<%= t 'site.search.search' %>

-
+
- <% form_remote_tag(:before => "setSearchViewbox()", - :loading => "startSearch()", - :complete => "endSearch()", - :url => { :controller => :geocoder, :action => :search }, - :html => { :method => "get", :action => url_for(:action => "index") }) do %> - <%= text_field_tag :query, h(params[:query]) %> - <% if params[:action] == 'index' %> - <%= hidden_field_tag :minlon %> - <%= hidden_field_tag :minlat %> - <%= hidden_field_tag :maxlon %> - <%= hidden_field_tag :maxlat %> - <% end %> + <%= form_tag "#", :id => "search_form" do %> + <%= text_field_tag :query, h(params[:query]), :tabindex => "1" %> <%= submit_tag t('site.search.submit_text') %> <% end %>

- <%= t 'site.search.search_help' %> + <%= raw(t 'site.search.search_help') %>

<% end %>