Sha256: b328019dbf4ddace0d9307f081e3f38439e9853374fe85d10731b78404b42537

Contents?: true

Size: 1.6 KB

Versions: 11

Compression:

Stored size: 1.6 KB

Contents

<div class="toolbar" data-hook="toolbar">
  <ul class="actions">
    <li id='new_shipment_section'>
      <%= button_link_to t(:new_shipment), new_admin_order_shipment_url(@order), :icon => 'add' %>
    </li>
  </ul>
  <br class="clear" />
</div>
<%= render :partial => 'spree/admin/shared/order_tabs', :locals => { :current => 'Shipments' } %>
<table class="index">
  <tr data-hook="admin_shipments_index_headers">
    <th><%= t(:shipment_number) %></th>
    <th><%= t(:shipping_method) %></th>
    <th><%= t(:shipping_cost) %></th>
    <th><%= t(:tracking) %></th>
    <th><%= t(:status) %></th>
    <th><%= "#{t('spree.date')}/#{t('spree.time')}" %></th>
    <th data-hook="admin_shipments_index_header_actions">
      <%= t(:action) %>
    </th>
  </tr>
  <% @shipments.each do |shipment| %>
    <tr id="<%= dom_id shipment %>" data-hook="admin_shipments_index_rows">
      <td><%= shipment.number %></td>
      <td><%= shipment.shipping_method.name if shipment.shipping_method %></td>
      <td><%= number_to_currency shipment.cost %></td>
      <td><%= shipment.tracking %></td>
      <td><%= t(shipment.state.to_sym, :scope => :state_names, :default => shipment.state.to_s.humanize) %></td>
      <td><%= shipment.shipped_at.to_s(:date_time24) if shipment.shipped_at %></td>
      <td class="actions" data-hook="admin_shipments_index_row_actions">
        <%= 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) %>
      </td>
    </tr>
  <% end %>
</table>

<%= button_link_to t(:continue), admin_orders_url %>

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
spree_core-1.0.7 app/views/spree/admin/shipments/index.html.erb
spree_core-1.0.6 app/views/spree/admin/shipments/index.html.erb
spree_core-1.0.4 app/views/spree/admin/shipments/index.html.erb
spree_core-1.0.3 app/views/spree/admin/shipments/index.html.erb
spree_core-1.0.2 app/views/spree/admin/shipments/index.html.erb
spree_core-1.0.1 app/views/spree/admin/shipments/index.html.erb
spree_core-1.0.0 app/views/spree/admin/shipments/index.html.erb
spree_core-1.0.0.rc4 app/views/spree/admin/shipments/index.html.erb
spree_core-1.0.0.rc3 app/views/spree/admin/shipments/index.html.erb
spree_core-1.0.0.rc2 app/views/spree/admin/shipments/index.html.erb
spree_core-1.0.0.rc1 app/views/spree/admin/shipments/index.html.erb