X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/1db1277a5fd770b123cc4a3e01ce2c00c966a6cb..2198b6ebbf46cdad39b75a461b9a72e5cde93c3a:/app/views/layouts/_search.html.erb diff --git a/app/views/layouts/_search.html.erb b/app/views/layouts/_search.html.erb index 732e57d31..acc910b48 100644 --- a/app/views/layouts/_search.html.erb +++ b/app/views/layouts/_search.html.erb @@ -1,7 +1,22 @@ <%= form_tag search_path, :class => "search_form" do %> <%= submit_tag t('site.search.submit_text') %> -
+ + + +
+ <%= text_field_tag "route_from", params[:from], :placeholder => "From", :onchange=>"OSM.routing.geocode('route_from',event)" %> + <%= text_field_tag "route_to" , params[:to] , :placeholder => "To" , :onchange=>"OSM.routing.geocode('route_to' ,event)" %> +
+ + <%= link_to t('site.search.close_directions'), '#', { :class => "close_directions", :title => t('site.search.close_directions_title') } %> +
+
+ <% end %>