<%= render 'spree/admin/orders/shipment_manifest', order: order, shipment: shipment %>
<% unless shipment.shipped? %>
<%= label_tag 'selected_shipping_rate_id', Spree.t(:shipping_method) %>
<%= select_tag :selected_shipping_rate_id,
options_for_select(shipment.shipping_rates.map {|sr| ["#{sr.name} #{sr.display_price}", sr.id] }, shipment.selected_shipping_rate_id),
{:class => 'select2 fullwidth', :data => {'shipment-number' => shipment.number } } %>
<% if shipment.adjustment && shipment.adjustment.closed? %>
- <%= radio_button_tag :open_adjustment, 'yes', false, data: { 'shipment-number' => shipment.number } %> <%= Spree.t(:say_yes) %>
- <%= radio_button_tag :open_adjustment, 'no', true, data: { 'shipment-number' => shipment.number } %> <%= Spree.t(:say_no) %>
<% end %>
|
<% if can? :update, shipment %>
<%= link_to '', '#', :class => 'save-method icon_link icon-ok no-text with-tip',
:data => {'shipment-number' => shipment.number, :action => 'save'}, title: Spree.t('actions.save') %>
<%= link_to '', '#', :class => 'cancel-method icon_link icon-cancel no-text with-tip',
:data => {:action => 'cancel'}, :title => Spree.t('actions.cancel') %>
<% end %>
|
<% end %>
<% if shipment.adjustment.present? && shipment.shipping_method.present? %>
<%= shipment.adjustment.label %>: <%= shipment.shipping_method.name %>
<% else %>
<%= Spree.t(:cannot_set_shipping_method_without_address) %>
<% end %>
|
<% if shipment.adjustment.present? %>
<%= shipment.adjustment.display_amount %>
<% end %>
|
<% if shipment.adjustment.present? && !shipment.shipped? %>
<% if can? :update, shipment %>
<%= link_to '', '#', :class => 'edit-method icon_link icon-edit no-text with-tip', :data => {:action => 'edit'}, :title => Spree.t('edit') %>
<% end %>
|
<% end %>
<%= text_field_tag :tracking, shipment.tracking %>
|
<% if can? :update, shipment %>
<%= link_to '', '#', :class => 'save-tracking icon_link icon-ok no-text with-tip', :data => {'shipment-number' => shipment.number, :action => 'save'}, :title => Spree.t('actions.save') %>
<%= link_to '', '#', :class => 'cancel-tracking icon_link icon-cancel no-text with-tip', :data => {:action => 'cancel'}, :title => Spree.t('actions.cancel') %>
<% end %>
|
<% if @order.special_instructions.present? %>
<%= Spree.t(:special_instructions) %>: <%= @order.special_instructions %>
|
<% end %>
<% 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 icon_link icon-edit no-text with-tip', :data => {:action => 'edit'}, :title => Spree.t('edit') %>
<% end %>
|