<%= Spree.t(:item_description) %> | <%= Spree.t(:price) %> | <%= Spree.t(:quantity) %> | <%= Spree.t(:total) %> | |||||||
---|---|---|---|---|---|---|---|---|---|---|
<%= 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', data: {'shipment-number' => shipment.number } } %>
|
<% if can? :update, shipment %> <%= link_to_with_icon 'cancel.svg', Spree.t('actions.cancel'), "#", class: 'cancel-method btn btn-outline-secondary btn-sm', data: {action: 'cancel'}, title: Spree.t('actions.cancel'), no_text: true %> <%= link_to_with_icon 'save.svg', Spree.t('actions.save'), "#", class: 'save-method btn btn-success btn-sm', data: {'shipment-number' => shipment.number, action: 'save'}, title: Spree.t('actions.save'), no_text: true %> <% end %> | |||||||||
<%= rate.name %> | <%= shipment.display_cost %> | <% else %><%= Spree.t(:no_shipping_method_selected) %> | <% end %><% if( (can? :update, shipment) and !shipment.shipped?) %> <%= link_to_with_icon 'edit.svg', Spree.t('edit'), "javascript:;", class: 'edit-method with-tip btn btn-sm btn-outline-secondary', data: {action: 'edit'}, no_text: true %> <% end %> | |||||||
<%= text_field_tag :tracking, shipment.tracking, class: "form-control" %> | <% if can? :update, shipment %> <%= link_to_with_icon 'cancel.svg', Spree.t('actions.cancel'), "#", class: 'cancel-tracking btn btn-outline-secondary btn-sm', data: {action: 'cancel'}, title: Spree.t('actions.cancel'), no_text: true %> <%= link_to_with_icon 'save.svg', Spree.t('actions.save'), "#", class: 'save-tracking btn btn-success btn-sm', data: {'shipment-number' => shipment.number, action: 'save'}, title: Spree.t('actions.save'), no_text: true %> <% end %> | |||||||||
<%= Spree.t(:special_instructions) %>: <%= order.special_instructions %> | ||||||||||
<% if shipment.tracking.present? %> <%= Spree.t(:tracking) %>: <%= link_to_tracking(shipment, target: '_blank') %> <% else %> <%= Spree.t(:no_tracking_present) %> <% end %> | <% if can? :update, shipment %> <%= link_to_with_icon 'edit.svg', Spree.t('edit'), "#", class: 'edit-tracking btn btn-outline-secondary btn-sm', data: {action: 'edit'}, title: Spree.t('edit'), no_text: true %> <% end %> |