% if order.line_items.exists? %>
<%= Spree.t(:name) %> | <%= Spree.t(:price) %> | <%= Spree.t(:quantity) %> | <%= Spree.t(:total_price) %> | |||
---|---|---|---|---|---|---|
<%= mini_image(item.variant) %> |
<%= item.name %>
<%= "(#{item.options_text})" if item.options_text.present? %> |
<%= item.single_money.to_html %> | <%= item.quantity %> | <%= number_field_tag :quantity, item.quantity, min: 0, class: "line_item_quantity form-control", size: 5 %> | <%= line_item_shipment_price(item, item.quantity) %> | <% if can? :update, item %> <%= link_to_with_icon 'arrow-left', Spree.t('actions.cancel'), "#", class: 'cancel-line-item btn btn-default btn-sm', data: {action: 'cancel'}, title: Spree.t('actions.cancel'), style: 'display: none', no_text: true %> <%= link_to_with_icon 'save', Spree.t('actions.save'), "#", class: 'save-line-item btn btn-success btn-sm', no_text: true, data: { :'line-item-id' => item.id, action: 'save'}, title: Spree.t('actions.save'), style: 'display: none' %> <%= link_to_with_icon 'edit', Spree.t('edit'), "#", class: 'edit-line-item btn btn-primary btn-sm', data: {action: 'edit'}, title: Spree.t('edit'), no_text: true %> <%= link_to_with_icon 'delete', Spree.t('delete'), "#", class: 'delete-line-item btn btn-danger btn-sm', data: { 'line-item-id' => item.id, action: 'remove'}, title: Spree.t('delete'), no_text: true %> <% end %> |