Sha256: 0ccfa1fd86a3e297a111805f2c10b73c6846629ed03896e4898ed2a66a87bfcc
Contents?: true
Size: 2 KB
Versions: 6
Compression:
Stored size: 2 KB
Contents
<%= render :partial => 'spree/admin/shared/order_tabs', :locals => { :current => 'Shipments' } %> <% content_for :page_actions do %> <li id='new_shipment_section'> <%= button_link_to t(:new_shipment), new_admin_order_shipment_url(@order), :icon => 'icon-plus' %> </li> <li><%= button_link_to t(:back_to_orders_list), admin_orders_path, :icon => 'icon-arrow-left' %></li> <% end %> <% content_for :page_title do %> <i class="icon-arrow-right"></i> <%= t(:shipments) %> <% end %> <table class="index"> <thead> <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" class="actions"></th> </tr> </thead> <tbody> <% @shipments.each do |shipment| %> <tr id="<%= spree_dom_id shipment %>" data-hook="admin_shipments_index_rows" class="<%= cycle('odd', 'even') %>"> <td><%= shipment.number %></td> <td><%= shipment.shipping_method.name if shipment.shipping_method %></td> <td><%= shipment.display_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 'icon-edit', t(:edit), edit_admin_order_shipment_url(@order, shipment), :no_text => true, :data => {:action => 'edit'} %> <%= link_to_delete shipment, :url => admin_order_shipment_url(@order, shipment), :no_text => true %> </td> </tr> <% end %> </tbody> </table> <div class="form-actions"> <%= button_link_to t(:continue), admin_orders_url, :icon => 'icon-arrow-right' %> </div>
Version data entries
6 entries across 6 versions & 2 rubygems