diff --git a/app/views/spree/admin/orders/_shipment.html.erb b/app/views/spree/admin/orders/_shipment.html.erb new file mode 100644 index 0000000000..109f6e00fb --- /dev/null +++ b/app/views/spree/admin/orders/_shipment.html.erb @@ -0,0 +1,120 @@ +
| <%= Spree.t(:item_description) %> | +<%= Spree.t(:price) %> | +<%= Spree.t(:quantity) %> | +<%= Spree.t(:total) %> | ++ + + + <%= render 'spree/admin/orders/shipment_manifest', order: order, shipment: shipment %> + + <% unless shipment.shipped? %> + + <% end %> + + | |
|---|---|---|---|---|---|
| + <% if shipment.adjustment.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 %> +|||
| + <% 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 %> + | +||||