Sha256: 76ed79a028aa0bab4210210cdf3f1a925cf140b39058ba7ead5f68b5906d1d4a

Contents?: true

Size: 1.09 KB

Versions: 1

Compression:

Stored size: 1.09 KB

Contents

<h2>Order #<%= @order.identifier %></h2>
<table id="bodega-cart">
  <thead>
    <tr><th class="product-name"><%= t 'bodega.product' %></th><th class="price"><%= t 'bodega.price' %></th><th class="total"><%= t 'bodega.total' %></th></tr>
  </thead>
  <tbody>
    <% @order.order_products.each do |order_product| -%>
    <tr>
      <td class="product-name">
        <%= order_product.quantity %> x
        <%= order_product.name %>
      </td>
      <td class="price">
        <%= humanized_money_with_symbol order_product.price %>
      </td>
      <td class="subtotal">
        <%= humanized_money_with_symbol order_product.subtotal %>
      </td>
    </tr>
    <% end -%>

    <tr>
      <td class="product-name">
        <%= @order.shipping_rate_name %>
      </td>
      <td class="price">
        <%= humanized_money_with_symbol @order.shipping %>
      </td>
      <td class="subtotal">
        <%= humanized_money_with_symbol @order.shipping %>
      </td>
    </tr>

    <tr>
      <td colspan="2"></td>
      <td><%= humanized_money_with_symbol @order.total %></td>
      <td></td>
    </tr>
  </tbody>
</table>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
bodega-0.4.12 app/views/bodega/orders/show.html.erb