<%= render :partial => 'spree/admin/shared/order_tabs', :locals => { :current => 'Legacy Return Authorizations' } %> <% content_for :page_actions do %> <% if can?(:display, Spree::Order) %>
  • <%= button_link_to Spree.t(:back_to_orders_list), spree.admin_orders_path, :icon => 'arrow-left' %>
  • <% end %> <% end %> <% content_for :page_title do %> <%= Spree.t(:legacy_return_authorizations) %> <% end %> <% if @order.shipments.any?(&:shipped?) || @order.legacy_return_authorizations.any? %> <% @legacy_return_authorizations.each do |legacy_return_authorization| %> <% end %>
    <%= Spree.t(:legacy_rma_number) %> <%= Spree.t(:status) %> <%= Spree.t(:amount) %> <%= "#{Spree.t('date')}/#{Spree.t('time')}" %>
    <%= legacy_return_authorization.number %> <%= Spree.t(legacy_return_authorization.state.downcase) %> <%= legacy_return_authorization.display_amount.to_html %> <%= pretty_time(legacy_return_authorization.created_at) %> <% if can?(:update, legacy_return_authorization) %> <%= link_to_edit legacy_return_authorization, :no_text => true, :class => 'edit' %> <% end %> <% if can?(:destroy, legacy_return_authorization) && !legacy_return_authorization.received? %>   <%= link_to_delete legacy_return_authorization, :no_text => true %> <% end %>
    <% else %>
    <%= Spree.t(:cannot_create_returns) %>
    <% end %>