Sha256: cf2d9956865cec1343f9284246bf7e96b2300224a64e4e3868f3c9e71d83035e
Contents?: true
Size: 1.39 KB
Versions: 27
Compression:
Stored size: 1.39 KB
Contents
<% if @order.inventory_units.any? &:shipped? %> <div class='toolbar'> <ul class='actions'> <li> <%= button_link_to t("new_return_authorization"), new_admin_order_return_authorization_url(@order), :icon => 'add' %> </li> </ul> <br class='clear' /> </div> <% end %> <%= render :partial => 'admin/shared/order_tabs', :locals => {:current => "Return Authorizations"} %> <table class="index"> <tr> <th><%= t("rma_number") %></th> <th><%= t("status") %></th> <th><%= t("amount") %></th> <th><%= "#{t('spree.date')}/#{t('spree.time')}" %></th> <th></th> </tr> <% @return_authorizations.each do |return_authorization| %> <tr id="<%= dom_id(return_authorization) %>"> <td><%= return_authorization.number %></td> <td><%= t(return_authorization.state.downcase) %></td> <td><%= number_to_currency(return_authorization.amount) %></td> <td><%= return_authorization.created_at.to_s(:date_time24) %></td> <td> <%= link_to_edit return_authorization %> <% unless return_authorization.received? %> <%= link_to_delete return_authorization %> <% end %> </td> </tr> <% end %> <% unless @order.inventory_units.any? &:shipped? %> <tr> <td colspan="5"><%= t("cannot_create_returns") %></td> </tr> <% end %> </table> <%= button_link_to t('continue'), admin_orders_url %>
Version data entries
27 entries across 27 versions & 6 rubygems