<%= render :partial => 'spree/admin/shared/order_tabs', :locals => { :current => 'Return Authorizations' } %> <% content_for :page_actions do %> <% if @order.shipments.any? &:shipped? %>
  • <%= button_link_to Spree.t(:new_return_authorization), new_admin_order_return_authorization_url(@order), :icon => 'plus' %>
  • <% end %>
  • <%= button_link_to Spree.t(:back_to_orders_list), spree.admin_orders_path, :icon => 'arrow-left' %>
  • <% end %> <% content_for :page_title do %> <%= Spree.t(:return_authorizations) %> <% end %> <% if @order.shipments.any?(&:shipped?) || @order.return_authorizations.any? %> <% @return_authorizations.each do |return_authorization| %> <% end %>
    <%= Spree.t(:rma_number) %> <%= Spree.t(:status) %> <%= Spree.t(:amount) %> <%= "#{Spree.t('date')}/#{Spree.t('time')}" %>
    <%= return_authorization.number %> <%= Spree.t(return_authorization.state.downcase) %> <%= return_authorization.display_amount.to_html %> <%= pretty_time(return_authorization.created_at) %> <%= link_to_edit return_authorization, :no_text => true, :class => 'edit' %> <% unless return_authorization.received? %>   <%= link_to_delete return_authorization, :no_text => true %> <% end %>
    <% else %>
    <%= Spree.t(:cannot_create_returns) %>
    <% end %> <%= button_link_to Spree.t(:continue), admin_orders_url, :icon => 'arrow-right' %>