%= render 'stock_item', shipment: shipment %>
<% unless shipment.shipped? %>
<%= label_tag 'selected_shipping_rate_id', t('spree.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 can? :update, shipment %>
<%= link_to '', '#', :class => 'save-method fa fa-ok no-text with-tip',
:data => {'shipment-number' => shipment.number, :action => 'save'}, title: t('spree.actions.save') %>
<%= link_to '', '#', :class => 'cancel-method fa fa-cancel no-text with-tip',
:data => {:action => 'cancel'}, :title => t('spree.actions.cancel') %>
<% end %>
|
<% end %>
<% if shipment.shipping_method %>
<%= shipment.shipping_method.name %>
|
<%= shipment.display_cost %>
|
<% else %>
<%= t('spree.no_shipping_method_selected') %> |
<% end %>
<% if can? :update, shipment %>
<%= link_to '', '#', :class => 'edit-method fa fa-edit no-text with-tip', :data => {:action => 'edit'}, :title => t('spree.actions.edit') %>
<% end %>
|
<%= text_field_tag :tracking, shipment.tracking %>
|
<% if can? :update, shipment %>
<%= link_to '', '#', :class => 'save-tracking fa fa-ok no-text with-tip', :data => {'shipment-number' => shipment.number, :action => 'save'}, :title => t('spree.actions.save') %>
<%= link_to '', '#', :class => 'cancel-tracking fa fa-cancel no-text with-tip', :data => {:action => 'cancel'}, :title => t('spree.actions.cancel') %>
<% end %>
|
<% if shipment.tracking.present? %>
<%= shipment.tracking %>
<% else %>
<%= t('spree.no_tracking_present') %>
<% end %>
|
<% if can? :update, shipment %>
<%= link_to '', '#', :class => 'edit-tracking fa fa-edit no-text with-tip', :data => {:action => 'edit'}, :title => t('spree.actions.edit') %>
<% end %>
|