Sha256: 22a889146c87aa17c0c7119a99ecad159903406901ad9a47a9b87fb5b5110a9f

Contents?: true

Size: 1.41 KB

Versions: 19

Compression:

Stored size: 1.41 KB

Contents

<div data-hook="admin_order_form_fields">
  <% if @line_item.try(:errors).present? %>
      <%= render 'spree/admin/shared/error_messages', target: @line_item %>
  <% end %>

  <%= render "spree/admin/orders/line_items", order: order %>
  <%= render "spree/admin/orders/adjustments",
          adjustments: @order.line_item_adjustments,
          order: order,
          title: Spree.t(:line_item_adjustments)
  %>
  <%= render "spree/admin/orders/adjustments",
          adjustments: @order.shipment_adjustments,
          order: order,
          title: Spree.t(:shipment_adjustments)
  %>
  <%= render "spree/admin/orders/adjustments",
          adjustments: @order.adjustments,
          order: order,
          title: Spree.t(:order_adjustments)
  %>

  <% if order.line_items.exists? %>
    <div class="alert alert-success" id="order-total" data-hook="order_details_total">
      <%= Spree.t(:order_total) %>: <strong class="order-total"><%= order.display_total %></strong>
    </div>
  <% end %>

  <%= javascript_tag do %>
    var order_number = '<%= @order.number %>';
    var shipments = [];

    <% @order.shipments.each do |shipment| %>
      shipments.push(<%== shipment.as_json(root: false, only: [:id, :tracking, :number, :state, :stock_location_id], include: [:inventory_units, :stock_location]).to_json %>);
    <% end %>

    <%= render partial: 'spree/admin/shared/update_order_state', handlers: [:js] %>
  <% end %>
</div>

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
spree_backend-3.1.14 app/views/spree/admin/orders/_line_items_edit_form.html.erb
spree_backend-3.1.13 app/views/spree/admin/orders/_line_items_edit_form.html.erb
spree_backend-3.1.12 app/views/spree/admin/orders/_line_items_edit_form.html.erb
spree_backend-3.1.11 app/views/spree/admin/orders/_line_items_edit_form.html.erb
spree_backend-3.1.10 app/views/spree/admin/orders/_line_items_edit_form.html.erb
spree_backend-3.1.9 app/views/spree/admin/orders/_line_items_edit_form.html.erb
spree_backend-3.1.8 app/views/spree/admin/orders/_line_items_edit_form.html.erb
spree_backend-3.1.7 app/views/spree/admin/orders/_line_items_edit_form.html.erb
spree_backend-3.1.6 app/views/spree/admin/orders/_line_items_edit_form.html.erb
spree_backend-3.1.5 app/views/spree/admin/orders/_line_items_edit_form.html.erb
spree_backend-3.1.4 app/views/spree/admin/orders/_line_items_edit_form.html.erb
spree_backend-3.1.3 app/views/spree/admin/orders/_line_items_edit_form.html.erb
spree_backend-3.1.2 app/views/spree/admin/orders/_line_items_edit_form.html.erb
spree_backend-3.1.1 app/views/spree/admin/orders/_line_items_edit_form.html.erb
spree_backend-3.1.0 app/views/spree/admin/orders/_line_items_edit_form.html.erb
spree_backend-3.1.0.rc4 app/views/spree/admin/orders/_line_items_edit_form.html.erb
spree_backend-3.1.0.rc3 app/views/spree/admin/orders/_line_items_edit_form.html.erb
spree_backend-3.1.0.rc2 app/views/spree/admin/orders/_line_items_edit_form.html.erb
spree_backend-3.1.0.rc1 app/views/spree/admin/orders/_line_items_edit_form.html.erb