Sha256: 7ecf7dbf5f4e341632f4f1149a21bec5bad05913c4a5e43fbb880d1c457ea8e2

Contents?: true

Size: 1.04 KB

Versions: 3

Compression:

Stored size: 1.04 KB

Contents

.col-md-12
  %h3= t('ordered_items')
  %table.table#current_order
    %thead
      %tr.active
        %th.lead.text-center= t('cart.product')
        %th.lead.text-center= t('cart.quantity')
        %th.lead.text-center= t('cart.price')
        %th.lead.text-center= t('cart.total')
    %tbody.text-center
      - order.order_items.each do |order_item|
        %tr
          %td.text-left{width:"60%"}= order_item.productable.title
          %td{width:"10%"}= order_item.quantity
          %td{width:"10%"}= order_item.productable.price
          %td{width:"10%"}= number_to_currency order_item.item_total
      - if wizard_steps.include? :delivery
        %tr
          %td{colspan:2}
          %td.text-right
            = t('checkout.item_total')
            %br= t('checkout.shipping_price')
          %td
            = order.total_in_currency
            %br= order.delivery.decorate.price_in_currency
      %tr
        %td{colspan:2}
        %td.text-right
          %strong= t('checkout.order_total')
        %td
          %strong= order.total_with_delivery

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
shopping-cart-0.1.2 app/views/shopping_cart/checkout/_confirmation_order.html.haml
shopping-cart-0.1.1 app/views/shopping_cart/checkout/_confirmation_order.html.haml
shopping-cart-0.1.0 app/views/shopping_cart/checkout/_confirmation_order.html.haml