X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/e19c04c7a7410dd134df9242c221e8a8bb83e3c6..ce054eed227c9f01d8278b80fcbd7e8fcca04355:/app/views/site/_search.html.erb diff --git a/app/views/site/_search.html.erb b/app/views/site/_search.html.erb index 3750a7dc9..9adc3dafe 100644 --- a/app/views/site/_search.html.erb +++ b/app/views/site/_search.html.erb @@ -1,60 +1,59 @@ -<% content_for "optionals" do %> +<% content_for :optionals do %>
- <%= t 'site.search.search' %> - <%= t 'site.search.where_am_i' %> -
+
- <% 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 %> <%= submit_tag t('site.search.submit_text') %> + <%= text_field_tag :query, h(params[:query]), :tabindex => "1", :placeholder => t('site.search.search') %> <% end %>
-

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

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

<% end %>