<% manifest_items = Spree::ShippingManifest.new(inventory_units: shipment.inventory_units.where(carton_id: nil)).items %> <% unless manifest_items.empty? %>
" data-hook="admin_shipment_form"> <%= render :partial => "spree/admin/variants/split", :formats => :js %>
<%= shipment.number %> - <%= Spree.t("shipment_states.#{shipment.state}") %> <%= Spree.t(:package_from) %> '<%= shipment.stock_location.name %>' <% if shipment.ready? && can?(:ship, shipment) %> <%= form_tag(spree.ship_api_shipment_path(shipment), { method: "PUT", remote: true, id: "admin-ship-shipment" }) do %> <%= hidden_field_tag :send_mailer, false %> <%= check_box_tag :send_mailer, true, true %> <%= label_tag :send_mailer, Spree.t(:send_mailer) %> <%= submit_tag Spree.t(:ship), class: "ship-shipment-button" %> <% end %> <% end %>
<%= render 'spree/admin/orders/shipment_manifest', { shipment_number: shipment.number, shipment_manifest: manifest_items } %> <% unless shipment.shipped? %> <% end %> <% if rate = shipment.selected_shipping_rate %> <% else %> <% end %> <% if order.special_instructions.present? %> <% end %>
<%= Spree.t(:item_description) %> <%= Spree.t(:price) %> <%= Spree.t(:quantity) %> <%= Spree.t(:total) %>
<%= rate.name %> <%= shipment.display_cost %> <%= Spree.t(:no_shipping_method_selected) %> <% if( (can? :update, shipment) and !shipment.shipped?) %> <%= link_to '', '#', :class => 'edit-method fa fa-edit no-text with-tip', :data => {:action => 'edit'}, :title => Spree.t('edit') %> <% end %>
<%= Spree.t(:special_instructions) %>: <%= order.special_instructions %>
<% if shipment.tracking.present? %> <%= Spree.t(:tracking) %>: <%= shipment.tracking %> <% else %> <%= Spree.t(:no_tracking_present) %> <% end %> <% if can? :update, shipment %> <%= link_to '', '#', :class => 'edit-tracking fa fa-edit no-text with-tip', :data => {:action => 'edit'}, :title => Spree.t('edit') %> <% end %>
<% end %>