Sha256: e7982d382bc6aa6558fe107189ada167429f6b9b2a68d4ac599980e8e5110fff
Contents?: true
Size: 1.56 KB
Versions: 1
Compression:
Stored size: 1.56 KB
Contents
<table> <tr> <td valign="top"> <div id="product-image"> <%= image_tag 'products/' + @product.filename %> </div> </td> <td> <table> <tr> <td class="product-name"><%= @product.name %></td> </tr> <tr> <td class="product-description"><%= @product.description %></td> </tr> <tr> <td> <span class="product-price">Price: </span> <%= @product.price %> </td> </tr> <% form_for :product, :url => {:controller => :cart, :action => :add} do |f| %> <input type="hidden" name="product_id" value="<%= @product.id %>"/> <%= f.hidden_field :id %> <% unless @product.variations.empty? %> <tr> <td class="product-variations">Variations:</td> </tr> <tr> <td> <div id="variations"> <ul> <% @product.variations.each do |v| %> <li> <input type="radio" name="variation_id" value="<%= v.id %>" <%= @product.variations.first == v ? 'checked' : '' %>"/> <%= variation_options v%> </li> <% end%> </ul> </div> </td> </tr> <% end%> <% if @product.tags.size > 0 %> <tr> <td> <div id="Related Products"> <h4>Related Products</h4> [TODO - list related products] </div> </td> </tr> <% end %> <tr> <td> <%= submit_tag 'Add To Cart' %> </td> </tr> <% end %> </table> </td> </tr> </table>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
railscart-0.0.3 | starter_app/vendor/plugins/railscart/app/views/store/show.rhtml |