Sha256: c5b73f54cb1fea195286f6ae62af9667f956fcab6bdeff8a6a15085bc02730a3

Contents?: true

Size: 1.63 KB

Versions: 40

Compression:

Stored size: 1.63 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 %>

  <%= render :partial => "spree/admin/orders/line_items", :locals => { :order => order } %>
  <%= 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.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

40 entries across 40 versions & 2 rubygems

Version Path
solidus_backend-1.2.3 app/views/spree/admin/orders/_line_items_edit_form.html.erb
solidus_backend-1.1.4 app/views/spree/admin/orders/_line_items_edit_form.html.erb
solidus_backend-1.0.7 app/views/spree/admin/orders/_line_items_edit_form.html.erb
solidus_backend-1.0.6 app/views/spree/admin/orders/_line_items_edit_form.html.erb
solidus_backend-1.2.2 app/views/spree/admin/orders/_line_items_edit_form.html.erb
solidus_backend-1.2.1 app/views/spree/admin/orders/_line_items_edit_form.html.erb
solidus_backend-1.1.3 app/views/spree/admin/orders/_line_items_edit_form.html.erb
solidus_backend-1.0.5 app/views/spree/admin/orders/_line_items_edit_form.html.erb
solidus_backend-1.2.0 app/views/spree/admin/orders/_line_items_edit_form.html.erb
solidus_backend-1.2.0.rc2 app/views/spree/admin/orders/_line_items_edit_form.html.erb
solidus_backend-1.0.4 app/views/spree/admin/orders/_line_items_edit_form.html.erb
solidus_backend-1.1.2 app/views/spree/admin/orders/_line_items_edit_form.html.erb
solidus_backend-1.2.0.rc1 app/views/spree/admin/orders/_line_items_edit_form.html.erb
solidus_backend-1.2.0.beta1 app/views/spree/admin/orders/_line_items_edit_form.html.erb
solidus_backend-1.0.3 app/views/spree/admin/orders/_line_items_edit_form.html.erb
solidus_backend-1.1.1 app/views/spree/admin/orders/_line_items_edit_form.html.erb
solidus_backend-1.1.0 app/views/spree/admin/orders/_line_items_edit_form.html.erb
solidus_backend-1.1.0.pre2 app/views/spree/admin/orders/_line_items_edit_form.html.erb
solidus_backend-1.1.0.pre1 app/views/spree/admin/orders/_line_items_edit_form.html.erb
solidus_backend-1.1.0.beta1 app/views/spree/admin/orders/_line_items_edit_form.html.erb