<%- locals = {:shipment => shipment} %>
<%= hook :admin_shipments_index_rows, locals do %>
<%= 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 %> |
<% end %>
<%= 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 %>
|
<% end %>