Sha256: e471f9a6359b8bdba579bd652e5b801d9cfdde668e0d90c32cd27e46bf3a338e

Contents?: true

Size: 1.68 KB

Versions: 5

Compression:

Stored size: 1.68 KB

Contents

<div class='toolbar'>
  <ul class='actions'>
    <li>
      <%= button_link_to t("new_shipment"), new_object_url, :icon => 'add'  %>
    </li>
  </ul>
  <br class='clear' />
</div>
<%= render :partial => 'admin/shared/order_tabs', :locals => {:current => "Shipments"} %>
<table class="index">
  <tr>
    <% hook :admin_shipments_index_headers do %>
      <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>
    <% end %>
    <th>
      <% hook :admin_shipments_index_header_actions %>
    </th>
  </tr>
  <% @shipments.each do |shipment| %>
    <tr id="<%= dom_id shipment %>">
      <%- locals = {:shipment => shipment} -%>
      <% hook :admin_shipments_index_rows, locals do %>
        <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>
      <% end %>
      <td class="actions">
        <% 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 %>
      </td>
    </tr>
  <% end %>
</table>

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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
spree-0.11.4 vendor/extensions/theme_default/app/views/admin/shipments/index.html.erb
spree-0.11.3 vendor/extensions/theme_default/app/views/admin/shipments/index.html.erb
spree-0.11.2 vendor/extensions/theme_default/app/views/admin/shipments/index.html.erb
spree-0.11.1 vendor/extensions/theme_default/app/views/admin/shipments/index.html.erb
spree-0.11.0 vendor/extensions/theme_default/app/views/admin/shipments/index.html.erb