X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/4ebc48618e1b554cb0dda07f3fd34a7d3b7185a0..340c28127ffee83a9a882b807cee8e5bdc3f3b6b:/app/views/site/_search.html.erb diff --git a/app/views/site/_search.html.erb b/app/views/site/_search.html.erb index 0fea3793f..c074a49a3 100644 --- a/app/views/site/_search.html.erb +++ b/app/views/site/_search.html.erb @@ -1,59 +1,31 @@ -<% 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 url_for(:controller => :geocoder, :action => :search), :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'), :autofocus => "autofocus" %> <% end %>
-

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

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

<% end %>