Sha256: 1579e5588fd6271315c9412eae9033abdb2680775e5b51710c9f8a53abe2edc6
Contents?: true
Size: 1.73 KB
Versions: 2
Compression:
Stored size: 1.73 KB
Contents
<table> <tr> <td valign="top"> <div id="product-image"> <%= render :partial => 'image' -%> </div> <div id="product-thumbnails"> <%= render :partial => 'thumbnails', :locals => {:product => @product} -%> </div> </td> <td valign="top"> <% form_for :order, :url => orders_url do |f| %> <table> <tr> <td class="product-name"><%= @product.name %></td> </tr> <tr> <td class="product-description"><%= product_description(@product) %></td> </tr> <tr> <td> <%="<span class='product-price'>#{t("Price")}: </span> #{product_price(@product)}" if product_price(@product) %> </td> </tr> <% if @product.variants? %> <tr> <td class="product-variants"><%= t("Variants") %>:</td> </tr> <tr> <td> <div id="variants"> <ul> <% @product.variants.each do |v| %> <% next if v.option_values.empty? %> <li> <input type="radio" name="id" value="<%= v.id %>" <%= @product.variants.first == v ? 'checked="checked"' : '' %> <%= 'disabled' unless v.in_stock or Spree::Config[:allow_backorders] %> /> <%= variant_options v %> <% if variant_price_diff v %> <span class="price-diff"><%= variant_price_diff v %></span> <% end %> </li> <% end%> </ul> </div> </td> </tr> <% else %> <tr><td><input type="hidden" name="id" value="<%=@product.variants.first.id %>"/></td></tr> <% end%> <tr> <td> <%= submit_tag t('Add To Cart') %> </td> </tr> </table> <% end %> </td> </tr> </table>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
spree-0.4.0 | app/views/products/show.html.erb |
spree-0.4.1 | app/views/products/show.html.erb |