<%= render :partial => 'admin/shared/order_tabs', :locals => {:current => "Shipments"} %> <%= hook :admin_shipments_index_headers do %> <% end %> <% @shipments.each do |shipment| %> <%- locals = {:shipment => shipment} %> <%= hook :admin_shipments_index_rows, locals do %> <% end %> <% end %>
<%= t("shipment_number") %> <%= t("shipping_method") %> <%= t("shipping_cost") %> <%= t("tracking") %> <%= t("status") %> <%= "#{t('spree.date')}/#{t('spree.time')}" %> <%= hook :admin_shipments_index_header_actions do %> <%= t("action") %> <% end %>
<%= shipment.number %> <%= shipment.shipping_method.name if shipment.shipping_method %> <%= number_to_currency shipment.cost %> <%= shipment.tracking %> <%= t(shipment.state.to_sym, :scope => :state_names, :default => shipment.state.to_s.humanize) %> <%= shipment.shipped_at.to_s(:date_time24) if shipment.shipped_at %> <%= hook :admin_shipments_index_row_actions, locals do %> <%= link_to_with_icon 'edit', t('edit'), edit_admin_order_shipment_url(@order, shipment) %> <%= link_to_delete shipment, :url => admin_order_shipment_url(@order, shipment) %> <% end %>
<%= button_link_to t('continue'), admin_orders_url %>