Sha256: 20ec42b2bf778fc61da4f490871f2a3801d3868a08974232371290e0716794e4

Contents?: true

Size: 1.91 KB

Versions: 14

Compression:

Stored size: 1.91 KB

Contents

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

  <% if Spree::Order.checkout_step_names.include?(:delivery) %>
    <%= render :partial => "spree/admin/orders/shipment", :collection => @order.shipments.order(:created_at), :locals => { :order => order } %>
  <% else %>
    <%= render :partial => "spree/admin/orders/line_items", :locals => { :order => order } %>
  <% end %>

  <%= render :partial => "spree/admin/orders/adjustments", :locals => {
        :adjustments => @order.line_item_adjustments,
        :order => order,
        :title => Spree.t(:line_item_adjustments)
   } %>
  <%= render :partial => "spree/admin/orders/adjustments", :locals => {
        :adjustments => @order.shipment_adjustments,
        :order => order,
        :title => Spree.t(:shipment_adjustments)
   } %>
  <%= render :partial => "spree/admin/orders/adjustments", :locals => {
        :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

14 entries across 14 versions & 1 rubygems

Version Path
spree_backend-3.0.10 app/views/spree/admin/orders/_form.html.erb
spree_backend-3.0.9 app/views/spree/admin/orders/_form.html.erb
spree_backend-3.0.8 app/views/spree/admin/orders/_form.html.erb
spree_backend-3.0.7 app/views/spree/admin/orders/_form.html.erb
spree_backend-3.0.6.1 app/views/spree/admin/orders/_form.html.erb
spree_backend-3.0.6 app/views/spree/admin/orders/_form.html.erb
spree_backend-3.0.5 app/views/spree/admin/orders/_form.html.erb
spree_backend-3.0.4 app/views/spree/admin/orders/_form.html.erb
spree_backend-3.0.3 app/views/spree/admin/orders/_form.html.erb
spree_backend-3.0.2 app/views/spree/admin/orders/_form.html.erb
spree_backend-3.0.1 app/views/spree/admin/orders/_form.html.erb
spree_backend-3.0.0 app/views/spree/admin/orders/_form.html.erb
spree_backend-3.0.0.rc4 app/views/spree/admin/orders/_form.html.erb
spree_backend-3.0.0.rc3 app/views/spree/admin/orders/_form.html.erb