From e7d9ebe37a00f5b5337cdb1ed3aaaebcb5bbaac4 Mon Sep 17 00:00:00 2001 From: Skud Date: Sat, 30 Aug 2014 18:05:11 +1000 Subject: [PATCH] b3ify 'sort by' dropdown on crops page --- app/views/crops/index.html.haml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/app/views/crops/index.html.haml b/app/views/crops/index.html.haml index f3cbce84e..1b5663c25 100644 --- a/app/views/crops/index.html.haml +++ b/app/views/crops/index.html.haml @@ -5,9 +5,10 @@ View any crop page to see which of our members have planted it and find information on how to grow it yourself. -= form_tag(crops_path, :method => :get, :class => 'form-inline') do - = label_tag :sort, "Sort by:", :class => 'control-label' - = select_tag "sort", options_for_select({"Popularity" => 'popular', "Alphabetical" => 'alpha'}, @sort || 'popular') += form_tag(crops_path, :method => :get, :class => 'form-inline', :role => 'form') do + .form-group + = label_tag :sort, "Sort by:", :class => 'sr-only' + = select_tag "sort", options_for_select({"Sort by popularity" => 'popular', "Sort alphabetically" => 'alpha'}, @sort || 'popular'), :class => 'form-control' = submit_tag "Show", :class => 'btn btn-primary' %div.pagination