Sha256: 652fb9b9be87c9d16e590aec499ba676b8c944152c29ae35e2c4eae81cf0b133

Contents?: true

Size: 1.32 KB

Versions: 6

Compression:

Stored size: 1.32 KB

Contents

<% order = order_form.object %>
<%= render 'spree/shared/error_messages', target: order %>
<table id="cart-detail" data-hook>
  <thead>
    <tr data-hook="cart_items_headers">
      <th class="cart-item-description-header" colspan="2"><%= t('spree.item') %></th>
      <th class="cart-item-price-header"><%= t('spree.price') %></th>
      <th class="cart-item-quantity-header"><%= t('spree.qty') %></th>
      <th class="cart-item-total-header"><%= t('spree.total') %></th>
      <th class="cart-item-delete-header"></th>
    </tr>
  </thead>
  <tbody id="line_items" data-hook>
    <%= render partial: 'spree/orders/line_item', collection: order.line_items, locals: { order_form: order_form } %>
  </tbody>
  <% if order.adjustments.nonzero.exists? || order.line_item_adjustments.nonzero.exists? || order.shipment_adjustments.nonzero.exists? || order.shipments.any? %>
    <tr class="cart-subtotal">
      <td colspan="4" align='right'><h5><%= t('spree.cart_subtotal', count: order.line_items.sum(:quantity)) %></h5></th>
      <td colspan><h5><%= order.display_item_total %></h5></td>
      <td></td>
    </tr>
    <%= render "spree/orders/adjustments" %>
  <% end %>
  <tr class="cart-total">
    <td colspan="4" align='right'><h5><%= t('spree.total') %></h5></th>
    <td colspan><h5><%= order.display_total %></h5></td>
    <td></td>
  </tr>
</table>

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
solidus_frontend-2.5.2 app/views/spree/orders/_form.html.erb
solidus_frontend-2.5.1 app/views/spree/orders/_form.html.erb
solidus_frontend-2.5.0 app/views/spree/orders/_form.html.erb
solidus_frontend-2.5.0.rc1 app/views/spree/orders/_form.html.erb
solidus_frontend-2.5.0.beta2 app/views/spree/orders/_form.html.erb
solidus_frontend-2.5.0.beta1 app/views/spree/orders/_form.html.erb