Sha256: 5b2e623fc0ee6401cf41dcb6fd210003146732406ebd8e3e8213d05008338c52
Contents?: true
Size: 1.91 KB
Versions: 12
Compression:
Stored size: 1.91 KB
Contents
<%= render :partial => 'spree/admin/shared/order_tabs', :locals => { :current => 'Return Authorizations' } %> <% content_for :page_actions do %> <% if @order.shipments.any? &:shipped? %> <li> <%= button_link_to Spree.t(:new_return_authorization), new_admin_order_return_authorization_url(@order), :icon => 'plus' %> </li> <% end %> <li><%= button_link_to Spree.t(:back_to_orders_list), spree.admin_orders_path, :icon => 'arrow-left' %></li> <% end %> <% content_for :page_title do %> <i class="fa fa-arrow-right"></i> <%= Spree.t(:return_authorizations) %> <% end %> <% if @order.shipments.any?(&:shipped?) || @order.return_authorizations.any? %> <table class="index"> <thead data-hook="rma_header"> <tr> <th><%= Spree.t(:rma_number) %></th> <th><%= Spree.t(:status) %></th> <th><%= Spree.t(:amount) %></th> <th><%= "#{Spree.t('date')}/#{Spree.t('time')}" %></th> <th class="actions"></th> </tr> </thead> <tbody> <% @return_authorizations.each do |return_authorization| %> <tr id="<%= spree_dom_id(return_authorization) %>" data-hook="rma_row" class="<%= cycle('odd', 'even')%>"> <td><%= return_authorization.number %></td> <td><%= Spree.t(return_authorization.state.downcase) %></td> <td><%= return_authorization.display_amount.to_html %></td> <td><%= pretty_time(return_authorization.created_at) %></td> <td class="actions"> <%= link_to_edit return_authorization, :no_text => true, :class => 'edit' %> <% unless return_authorization.received? %> <%= link_to_delete return_authorization, :no_text => true %> <% end %> </td> </tr> <% end %> </tbody> </table> <% else %> <div data-hook="rma_cannont_create" class="no-objects-found"> <%= Spree.t(:cannot_create_returns) %> </div> <% end %>
Version data entries
12 entries across 12 versions & 1 rubygems