From 44a0835487875777401342b16fee73da68589cf5 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Sun, 1 Feb 2015 12:15:49 +0000 Subject: [PATCH 1/1] Move routing "Go" button up alongside the dropdown --- app/assets/stylesheets/common.scss | 5 +++++ app/views/layouts/_search.html.erb | 11 +++++++---- 2 files changed, 12 insertions(+), 4 deletions(-) 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" %> +
+ -- 2.43.2