Sha256: 5bb37c1dd25ed4af36f1d2ad9c787903966c82de383c4c1e2f1646c4e7db0398
Contents?: true
Size: 1.06 KB
Versions: 4
Compression:
Stored size: 1.06 KB
Contents
<% if object.reflections.keys.include?(:variants) -%> <%= javascript_include_tag "piggybak_variants/piggybak_variants" %> <script type="text/javascript"> var variant_map = <%= raw variant_map(object) %>; </script> <div class="variant_options"> <% options_for_klass(object.class).each do |option| -%> <div class="option" id="option_<%= option.id %>"> <h4><%= option.name %></h4> <% option.option_values.each do |option_value| -%> <input type="radio" name="option_<%= option.id %>" value="<%= option_value.id %>" /> <%= option_value.name %><br /> <% end -%> <br /> </div> <% end -%> <span class="all_selected">You must select an choice from each option.</span> <span class="unavailable">This combination is not available.</span> <%= form_tag piggybak.cart_add_url do -%> <input type="hidden" id="sellable_id" name="sellable_id" /> <div id="variant_price">Price: <span></span></div> <label for="quantity">Quantity</label> <%= text_field_tag :quantity, 1 %> <%= submit_tag "Add to Cart", :id => "submit" %> <% end -%> </div> <% end -%>
Version data entries
4 entries across 4 versions & 1 rubygems