Sha256: 18e0506bbcef5bc379e9396e2cfb863099807d456c4994fcb0f745738ea39712

Contents?: true

Size: 1.86 KB

Versions: 3

Compression:

Stored size: 1.86 KB

Contents

.hidden-xs#item_table
  - if current_order&.items_count
    %table.table.table-hover
      %tr.no-hover
        %th.col-pic.pl-0
          %span.in-grey-600= t('cart.product')
        %th.col-title
        %th.col-price
          %span.in-grey-600= t('cart.price')
        %th.col-quantity
          %span.in-grey-600= t('cart.quantity')
        %th.col-total
          %span.in-grey-600= t('cart.subtotal')
        %th.col-close
      - current_order.order_items.created.each do |item|
        %tr
          %td
            .general-img-wrap-table
              = render partial: 'shopping_cart/shared/icon_book_image', locals: { book: item.product }
          %td
            =link_to main_app.book_path(item.product), class: 'text-as-link' do
              %p.title= item.product.title
          %td
            %span.font-16.in-gold-500= price_to_euro(item.product.price)
          %td
            = link_to shopping_cart.order_item_path(id: item.id, quantity: item.quantity - 1), style: "display: inline;", id: "minus_#{item.product_id}", method: :put, remote: true do
              %i.fa.fa-minus.line-height-40
            .form-control.quantity-input{type: "text", id: "quantity_input_#{item.product_id}", style: "display: inline;"}= item.quantity
            = link_to shopping_cart.order_item_path(id: item.id, quantity: item.quantity + 1), style: "display: inline;", id: "plus_#{item.product_id}", method: :put, remote: true do
              %i.fa.fa-plus.line-height-40
          %td
            %span.font-16.in-gold-500= price_to_euro(item.total_price)
          %td
            = link_to order_item_path(item), method: :delete, class: 'close general-cart-close', remote: true do
              %span{'aria-hidden': "true"} ×
  - else
    .text-center
      %h3= t('notice.empty_cart')
      = link_to t('button.back_to_store'), main_app.catalog_path, class: 'btn btn-default mb-20'

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
loker-shopping-cart-0.1.3 app/views/shopping_cart/carts/_order_items.haml
loker-shopping-cart-0.1.2 app/views/shopping_cart/carts/_order_items.haml
loker-shopping-cart-0.1.1 app/views/shopping_cart/carts/_order_items.haml