mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-03-04 15:08:48 -05:00
b3ify 'sort by' dropdown on crops page
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user