Sha256: 9de59ac59c1cc85b196e5725bf63b23d3d7bcb981cf63526ae44a278409e09eb
Contents?: true
Size: 572 Bytes
Versions: 697
Compression:
Stored size: 572 Bytes
Contents
<label> <span for="product-sort">Sort by:</span> <select id="product-sort" style="margin: 0 !important"> <% @sort_options.each do |sort_option| %> <option value="<%= sort_option[:value] %>" <%= 'selected' if params[:sort] == sort_option[:value] %>><%= sort_option[:name] %></option> <% end %> </select> </label> <% content_for :caboose_js do %> <script> $(document).ready(function() { $('#product-sort').on('change', function(event) { window.location = '/products?sort=' + $(this).val(); }); }); </script> <% end %>
Version data entries
697 entries across 697 versions & 2 rubygems