X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/f436a5cd2ba7f1e86c73fab06eae2e8da188f79f..c798fe416a60eb25f8390ca8a5ab22126dfc7155:/app/views/site/_search.html.erb diff --git a/app/views/site/_search.html.erb b/app/views/site/_search.html.erb index 9adc3dafe..c208b3219 100644 --- a/app/views/site/_search.html.erb +++ b/app/views/site/_search.html.erb @@ -1,59 +1,16 @@ - - <% content_for :optionals do %>
- <%= form_tag "#", :id => "search_form" do %> + <%= 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') %> + <%= text_field_tag :query, h(params[:query]), :tabindex => "1", :placeholder => t('site.search.search'), :autofocus => "autofocus" %> <% end %>

<%= raw(t 'site.search.search_help') %> - <%= t 'site.search.where_am_i' %> + <%= link_to t('site.search.where_am_i'), { :controller => :geocoder, :action => :description }, { :id => "describe_location", :title => t('site.search.where_am_i_title') } %>

<% end %>