Created
September 14, 2010 17:37
-
-
Save dabit/579442 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%ul{:class => "sizes #{product_attribute.name.downcase}"} | |
-if product_attribute.name == "Width" | |
-values= product_attribute.values.sort{|x,y| x.id <=> y.id} | |
-attname='Shoe Witdh' | |
-objname="product[value_ids][#{product_attribute.solr_name}][]" | |
-elsif product_attribute.name == "Youth Shoe Sizes" | |
-values= Value.shoe_sizes | |
-attname='Shoe Sizes' | |
-objname="product[value_ids][shoe_sizes][]" | |
%b | |
=attname | |
%br/ | |
-for value in values do | |
-if attname == "Shoe Witdh" | |
= check_box_tag objname, value.id, false, :id =>value.to_html_id | |
%label{:class => "#{@slice}", :for => value.to_html_id } | |
= value.name | |
%br/ | |
-else | |
%li | |
= check_box_tag objname, value.id, false, :id =>value.to_html_id | |
%a{:href => "#", :class => "chk-select", :id => "link_#{value.to_html_id}"} | |
%span{:class => "#{value.name.downcase} size" } | |
=value.name | |
%a{:href => "#", :class => "chk-deselect"} | |
%span{:class => "#{value.name.downcase} size" } | |
=value.name |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment