<%= render :partial => 'spree/admin/shared/order_tabs', :locals => { :current => 'Shipments' } %>
<%= t(:shipment) %> #<%= @shipment.number%> (<%= t(@shipment.state.to_sym, :scope => :state_names, :default => @shipment.state.to_s.humanize) %>)
<% if @shipment.cost %>
<%= t(:charges) %> <%= money @shipment.cost %>
<% end %>
<%= render :partial => 'spree/shared/error_messages', :locals => { :target => @shipment } %>
<%= form_for @shipment, :url => admin_order_shipment_path(@order, @shipment), :method => :put do |shipment_form| %>
<%= render :partial => 'form', :locals => { :shipment_form => shipment_form } %>
<% if @shipment.editable_by?(try_spree_current_user) %>
<%= button @order.cart? ? t(:continue) : t(:update) %>
<%= t(:or) %> <%= link_to t(:cancel), admin_order_shipments_path(@order) %>
<% else %>
<%= link_to raw("« #{t(:back)}"), edit_admin_order_shipment_path(@order) %>
<% end %>
<% end %>