app/views/bodega/orders/show.html.erb in bodega-0.2.0 vs app/views/bodega/orders/show.html.erb in bodega-0.3.0

- old
+ new

@@ -1,26 +1,52 @@ -<%= @order.inspect %> +<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 colspan="2"></td> + <td><%= humanized_money_with_symbol @order.total %></td> + <td></td> + </tr> + </tbody> +</table>