%= render partial: 'spree/admin/shared/order_tabs', locals: { current: :return_authorizations } %> <% content_for :page_actions do %> <% if @order.shipments.any?(&:shipped?) && can?(:create, Spree::ReturnAuthorization) %> <%= button_link_to Spree.t(:new_return_authorization), new_admin_order_return_authorization_url(@order), class: "btn-success", icon: 'add' %> <% end %> <% end %> <% content_for :page_title do %> / <%= Spree.t(:return_authorizations) %> <% end %> <% if @order.shipments.any?(&:shipped?) && @order.return_authorizations.any? %>
<%= Spree.t(:rma_number) %> | <%= Spree.t(:status) %> | <%= Spree.t(:pre_tax_total) %> | <%= "#{Spree.t('date')}/#{Spree.t('time')}" %> | |
---|---|---|---|---|
<%= return_authorization.number %> | <%= Spree.t(return_authorization.state.downcase) %> | <%= return_authorization.display_pre_tax_total.to_html %> | <%= pretty_time(return_authorization.created_at) %> | <%= link_to_edit(return_authorization, no_text: true, class: 'edit') if can?(:edit, return_authorization) %> <% if can?(:delete, return_authorization) && !return_authorization.customer_returned_items? %> <%= link_to_delete return_authorization, no_text: true %> <% end %> |