Sha256: 8b43be49bca1b228df66d6c4d8851a0f59337ee0d67b0e95aeb811e81e28c147
Contents?: true
Size: 1.58 KB
Versions: 2
Compression:
Stored size: 1.58 KB
Contents
<% if view == "mobile" %> <% additional_classes = "d-lg-none" %> <% elsif view == "desktop" %> <% additional_classes = "d-none d-lg-table-cell" %> <% end %> <div class="shopping-cart-item-price <%= additional_classes %>" data-hook="cart_item_price"> <%= line_item.single_money.to_html %> </div> <div class="shopping-cart-item-quantity <%= additional_classes %>" data-hook="cart_item_quantity"> <div class="d-flex align-items-center"> <%= button_tag '-', type: 'button', class: "border-right-0 shopping-cart-item-quantity-decrease-btn", data: { id: dom_id(line_item) } %> <%= item_form.number_field :quantity, min: 0, class: "form-control text-center border-left-0 border-right-0 shopping-cart-item-quantity-input", size: 5, data: { id: dom_id(line_item) }, aria: { label: Spree.t('cart_page.change_quantity') } %> <%= button_tag '+', type: 'button', class: "border-left-0 shopping-cart-item-quantity-increase-btn", data: { id: dom_id(line_item) } %> </div> </div> <% if view == "desktop" %> <div class="shopping-cart-item-total d-none d-lg-table-cell" data-hook="cart_item_total"> <%= line_item.display_amount.to_html unless line_item.quantity.nil? %> </div> <% end %> <div class="shopping-cart-item-delete <%= additional_classes %>" data-hook="cart_item_delete"> <%= link_to '#', class: 'delete', id: "delete_#{dom_id(line_item)}", data: { turbolinks: false }, aria: { label: Spree.t('cart_page.remove_from_cart') } do %> <%= icon(name: 'garbage', classes: 'shopping-cart-item-delete-icon', width: 18.9, height: 17) %> <% end %> </div>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
spree_frontend-4.2.0.rc1 | app/views/spree/orders/_line_item_data.html.erb |
spree_frontend-4.2.0.beta | app/views/spree/orders/_line_item_data.html.erb |