<% admin_breadcrumb(plural_resource_name(Spree::Shipment)) %> <% manifest_items = Spree::ShippingManifest.new( inventory_units: shipment.inventory_units.where(carton_id: nil), ).items.sort_by { |item| item.line_item.created_at } %>
" class="js-shipment-edit" data-hook="admin_shipment_form">
<%= shipment.number %> - <%= Spree.t("shipment_states.#{shipment.state}") %> <%= Spree.t(:package_from) %> '<%= shipment.stock_location.name %>' <% if shipment.ready? && can?(:ship, shipment) %> <%= form_tag("#", class: "admin-ship-shipment") do %> <%= check_box_tag :send_mailer, true, true %> <%= label_tag :send_mailer, Spree.t(:send_mailer) %> <%= submit_tag Spree.t('actions.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::LineItem.human_attribute_name(:description) %> <%= Spree::LineItem.human_attribute_name(:price) %> <%= Spree::LineItem.human_attribute_name(:quantity) %> <%= Spree::LineItem.human_attribute_name(:total) %>
<%= rate.name %> <%= shipment.display_cost %> <%= Spree.t(:no_shipping_method_selected) %> <% if can?(:update, shipment) && !shipment.shipped? %> <%= link_to '', '#', :class => 'edit-method fa fa-edit no-text with-tip', :data => {:action => 'edit'}, :title => Spree.t('actions.edit') %> <% end %>
<%= Spree.t(:special_instructions) %>: <%= order.special_instructions %>
<% if shipment.tracking.present? %> <%= Spree::Shipment.human_attribute_name(: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('actions.edit') %> <% end %>