Sha256: 918716f9b49fb753461ed92796f87c32209c1c943696799f0b856a204983ee9b

Contents?: true

Size: 1.78 KB

Versions: 9

Compression:

Stored size: 1.78 KB

Contents

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

  <% if Spree::Order.checkout_step_names.include?(:delivery) && !%w(cart address).include?(@order.state) %>
    <%= render :partial => "spree/admin/orders/shipment", :collection => @order.shipments, :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? %>
    <fieldset class="no-border-bottom" id="order-total" data-hook="order_details_total">
      <legend><%= Spree.t(:order_total) %></legend>
      <span class="order-total"><%= order.display_total %></span>
    </fieldset>
  <% end %>

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

    <% @order.shipments.each do |shipment| %>
      shipments.push(<%== shipment.to_json(:root => false, :include => [:inventory_units, :stock_location]) %>);
    <% end %>

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

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
spree_backend-2.2.14 app/views/spree/admin/orders/_form.html.erb
spree_backend-2.2.13 app/views/spree/admin/orders/_form.html.erb
spree_backend-2.2.12 app/views/spree/admin/orders/_form.html.erb
spree_backend-2.2.11 app/views/spree/admin/orders/_form.html.erb
spree_backend-2.2.10 app/views/spree/admin/orders/_form.html.erb
spree_backend-2.2.9 app/views/spree/admin/orders/_form.html.erb
spree_backend-2.2.8 app/views/spree/admin/orders/_form.html.erb
spree_backend-2.2.7 app/views/spree/admin/orders/_form.html.erb
spree_backend-2.3.4 app/views/spree/admin/orders/_form.html.erb