Skip to content

Instantly share code, notes, and snippets.

@dabit
Created September 3, 2011 17:46
Show Gist options
  • Save dabit/1191519 to your computer and use it in GitHub Desktop.
Save dabit/1191519 to your computer and use it in GitHub Desktop.
.clear.sizes
- @product.grouped_attributes.each do |attribute,upcs|
= attribute.name
%br
%ul.sizes.details
- attribute.cached_size_values.each do |size|
- if upc = upcs.detect {|u| u.size == size}
%li
= check_box_tag "post[upc_id]", storefront_update_sellers_list_path(upc.id), false, :class => "post_upc_class", :id => upc.id
%a{:href => "#", :class => "chk-select"}
%span{:class => "color" }
= upc.size_name
%a{:href => "#", :class => "chk-deselect"}
%span{:class => " color" }
= upc.size_name
- else
%li
%span{:class => "empty color" }
=size.name
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment