Sha256: aa5ff3e3f4c9fa3504eea580b7067b95a25d1172195b2c695d79d96c509e185d

Contents?: true

Size: 1.78 KB

Versions: 14

Compression:

Stored size: 1.78 KB

Contents

<div class='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 => '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 do %>
        <%= t("action") %>
      <% end %>
    </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

14 entries across 14 versions & 6 rubygems

Version Path
apispree_core-0.0.0 app/views/admin/shipments/index.html.erb
My-Commerce_core-1.1.0 app/views/admin/shipments/index.html.erb
My-Commerce_core-1.0.0 app/views/admin/shipments/index.html.erb
MyCommerceapi-1.0.0 core/app/views/admin/shipments/index.html.erb
MyCommerce-0.0.3 core/app/views/admin/shipments/index.html.erb
rfcommerce_core-0.0.3 app/views/admin/shipments/index.html.erb
spree_core-0.60.6 app/views/admin/shipments/index.html.erb
spree_core-0.60.5 app/views/admin/shipments/index.html.erb
spree_core-0.60.4 app/views/admin/shipments/index.html.erb
spree_core-0.60.3 app/views/admin/shipments/index.html.erb
spree_core-0.60.2 app/views/admin/shipments/index.html.erb
spree_core-0.60.1 app/views/admin/shipments/index.html.erb
spree_core-0.60.0 app/views/admin/shipments/index.html.erb
spree_core-0.60.0.RC1 app/views/admin/shipments/index.html.erb