Sha256: 84cbcedaddf305fa3b45a568b01b36b76dd5edb7f2ca1fb913412123d184405d
Contents?: true
Size: 1.87 KB
Versions: 5
Compression:
Stored size: 1.87 KB
Contents
<%= render :partial => 'spree/admin/shared/order_tabs', :locals => { :current => 'Return Authorizations' } %> <% content_for :page_actions do %> <% if @order.inventory_units.any? &:shipped? %> <li> <%= button_link_to t(:new_return_authorization), new_admin_order_return_authorization_url(@order), :icon => 'icon-plus' %> </li> <% end %> <li><%= button_link_to t(:back_to_orders_list), spree.admin_orders_path, :icon => 'icon-arrow-left' %></li> <% end %> <% content_for :page_title do %> <i class="icon-arrow-right"></i> <%= t(:return_authorizations) %> <% end %> <% if @order.inventory_units.any? &:shipped? %> <table class="index"> <thead data-hook="rma_header"> <tr> <th><%= t(:rma_number) %></th> <th><%= t(:status) %></th> <th><%= t(:amount) %></th> <th><%= "#{t('spree.date')}/#{t('spree.time')}" %></th> <th class="action"></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><%= t(return_authorization.state.downcase) %></td> <td><%= return_authorization.display_amount %></td> <td><%= pretty_time(return_authorization.created_at) %></td> <td class="actions"> <%= link_to_edit return_authorization %> <% unless return_authorization.received? %> <%= link_to_delete return_authorization %> <% end %> </td> </tr> <% end %> </tbody> </table> <% else %> <div data-hook="rma_cannont_create" class="no-objects-found"> <%= t(:cannot_create_returns) %> </div> <% end %> <%= button_link_to t(:continue), admin_orders_url, :icon => 'icon-arrow-right' %>
Version data entries
5 entries across 5 versions & 2 rubygems