From: Tom Hughes Date: Sun, 1 Feb 2015 12:15:49 +0000 (+0000) Subject: Move routing "Go" button up alongside the dropdown X-Git-Tag: live~4233^2~5^2~6 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/44a0835487875777401342b16fee73da68589cf5?hp=13d650e2dcbe2467a82253097e10d58dddf9d9d2 Move routing "Go" button up alongside the dropdown --- diff --git a/app/assets/stylesheets/common.scss b/app/assets/stylesheets/common.scss index ff16ad66b..b7ba464c0 100644 --- a/app/assets/stylesheets/common.scss +++ b/app/assets/stylesheets/common.scss @@ -990,6 +990,11 @@ header .search_forms, margin: 0px 0px 5px 25px; } + input.routing_go { + min-width: 100px; + float: right; + } + div.line { width: 100%; margin: 0px 0px 5px 0px; diff --git a/app/views/layouts/_search.html.erb b/app/views/layouts/_search.html.erb index 02d6406cf..065190bd5 100644 --- a/app/views/layouts/_search.html.erb +++ b/app/views/layouts/_search.html.erb @@ -12,15 +12,18 @@
<%= link_to tag('span', { :class => "icon close"}), root_path, { :title => t('site.search.close_directions_title'), :class => "directions_close" } %>
- <%= image_tag "marker-green.png", :class => 'routing_marker', :id => 'marker_from', :draggable => 'true' %> + <%= image_tag "marker-green.png", :class => "routing_marker", :id => "marker_from", :draggable => "true" %> <%= text_field_tag "route_from", params[:from], :placeholder => t('site.search.from') %>
- <%= image_tag "marker-red.png" , :class => 'routing_marker', :id => 'marker_to' , :draggable => 'true' %> + <%= image_tag "marker-red.png", :class => "routing_marker", :id => "marker_to", :draggable => "true" %> <%= text_field_tag "route_to" , params[:to] , :placeholder => t('site.search.to') %>
- -
<%= submit_tag t('site.search.submit_text') %>
+
+ + <%= submit_tag t('site.search.submit_text'), :class => "routing_go" %> +
+