X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/639a994c9b851b94d4c65aa96af732eefc8453fb..8e5364b2f2162568cb23263cea9ad69122546ff7:/app/views/site/_search.html.erb?ds=sidebyside diff --git a/app/views/site/_search.html.erb b/app/views/site/_search.html.erb index dab031c7b..c074a49a3 100644 --- a/app/views/site/_search.html.erb +++ b/app/views/site/_search.html.erb @@ -1,42 +1,31 @@ -<% content_for "optionals" do %> +<% content_for :optionals do %>
- <%= t 'site.search.search' %> - <%= t 'site.search.where_am_i' %> -
+
- <% form_remote_tag(: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]) %> + <%= 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 %>