Sha256: 212f6ba9bb14115ad0e7226f8ea8ec8dc15bf48daeaf8a83d2497f6273c62c4d

Contents?: true

Size: 1.65 KB

Versions: 42

Compression:

Stored size: 1.65 KB

Contents

<% variant = line_item.variant %>

<%= order_form.fields_for :line_items, line_item do |item_form| %>
  <tr class="line-item">
    <td class="cart-item-image" data-hook="cart_item_image">
      <% if variant.images.length == 0 %>
        <%= link_to small_image(variant.product), variant.product %>
      <% else %>
        <%= link_to image_tag(main_app.url_for(variant.images.first.url(:small))), variant.product %>
      <% end %>
    </td>
    <td class="cart-item-description" data-hook="cart_item_description">
      <h4><%= link_to line_item.name, product_path(variant.product) %></h4>
      <%= variant.options_text %>
      <% if line_item.insufficient_stock? %>
        <span class="out-of-stock">
          <%= Spree.t(:out_of_stock) %>&nbsp;&nbsp;<br />
        </span>
      <% end %>
      <span class="line-item-description" data-hook="line_item_description">
        <%= line_item_description_text(line_item.description) %>
      </span>
    </td>
    <td class="lead text-primary cart-item-price" data-hook="cart_item_price">
      <%= line_item.single_money.to_html %>
    </td>
    <td class="cart-item-quantity" data-hook="cart_item_quantity" valign="center">
      <%= item_form.number_field :quantity, min: 0, class: "form-control line_item_quantity", size: 5 %>
    </td>
    <td class="lead text-primary cart-item-total" data-hook="cart_item_total">
      <%= line_item.display_amount.to_html unless line_item.quantity.nil? %>
    </td>
    <td class="cart-item-delete" data-hook="cart_item_delete">
      <%= link_to content_tag(:span, '', class: 'glyphicon glyphicon-minus-sign'), '#', class: 'delete', id: "delete_#{dom_id(line_item)}" %>
    </td>
  </tr>
<% end %>

Version data entries

42 entries across 42 versions & 1 rubygems

Version Path
spree_frontend-4.0.9 app/views/spree/orders/_line_item.html.erb
spree_frontend-4.0.8 app/views/spree/orders/_line_item.html.erb
spree_frontend-3.7.14.1 app/views/spree/orders/_line_item.html.erb
spree_frontend-4.0.7.1 app/views/spree/orders/_line_item.html.erb
spree_frontend-4.0.7 app/views/spree/orders/_line_item.html.erb
spree_frontend-3.7.14 app/views/spree/orders/_line_item.html.erb
spree_frontend-4.0.6 app/views/spree/orders/_line_item.html.erb
spree_frontend-3.7.13 app/views/spree/orders/_line_item.html.erb
spree_frontend-4.0.5 app/views/spree/orders/_line_item.html.erb
spree_frontend-3.7.12 app/views/spree/orders/_line_item.html.erb
spree_frontend-4.0.4 app/views/spree/orders/_line_item.html.erb
spree_frontend-3.7.11 app/views/spree/orders/_line_item.html.erb
spree_frontend-3.7.10 app/views/spree/orders/_line_item.html.erb
spree_frontend-4.0.3 app/views/spree/orders/_line_item.html.erb
spree_frontend-3.7.9 app/views/spree/orders/_line_item.html.erb
spree_frontend-4.0.2 app/views/spree/orders/_line_item.html.erb
spree_frontend-3.7.8 app/views/spree/orders/_line_item.html.erb
spree_frontend-4.0.1 app/views/spree/orders/_line_item.html.erb
spree_frontend-3.7.7 app/views/spree/orders/_line_item.html.erb
spree_frontend-4.0.0 app/views/spree/orders/_line_item.html.erb