X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/64fb530581ffd21e2522e70e8a2d4c46d666f760..75795125ad387af87be76afc28282f79856f0bb1:/app/views/site/_search.html.erb diff --git a/app/views/site/_search.html.erb b/app/views/site/_search.html.erb index 12b8bccc5..c208b3219 100644 --- a/app/views/site/_search.html.erb +++ b/app/views/site/_search.html.erb @@ -1,40 +1,16 @@ - - -<% 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 }) 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') %> + <%= link_to t('site.search.where_am_i'), { :controller => :geocoder, :action => :description }, { :id => "describe_location", :title => t('site.search.where_am_i_title') } %>

<% end %>