Sha256: ad946f35b344d4d48a7e54860b6d10a0634a702be0b075e24e7d429b0fa6a7be

Contents?: true

Size: 1.94 KB

Versions: 2

Compression:

Stored size: 1.94 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[:show_zero_stock_products]  %> />
											  <%= 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>
              <%=
                if @product.has_stock? || Spree::Config[:allow_backorders]
                  submit_tag t('Add To Cart')
                else
                  content_tag('strong', 'Out of Stock')
                end
            %>
					  </td>
					</tr>
				</table>
			<% end %>
		</td>
	</tr>
</table>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
spree-0.5.0 app/views/products/show.html.erb
spree-0.5.1 app/views/products/show.html.erb