X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/22594361d5abd2a6ee18e290058d9d39d7d761ec..9bcd049c98eb09e0b822710448e64dd5c266c498:/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 2c914d14c..c208b3219 100644 --- a/app/views/site/_search.html.erb +++ b/app/views/site/_search.html.erb @@ -1,88 +1,16 @@ - - -<% content_for "optionals" do %> +<% content_for :optionals do %>
- <%= t 'site.search.where_am_i' %> -

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

- <%= form_tag({ :controller => :geocoder, :action => :search }, - { :id => "search_form", :remote => true, :method => "get", :action => url_for(:action => "index") }) do %> - <%= text_field_tag :query, h(params[:query]), :tabindex => "1" %> + <%= 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 %>
-

+

<%= 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 %>