Sha256: a2c1e95d9e023ac72286b7caec81c197aa5e65479fa23bf1c64d8d256b3262ad

Contents?: true

Size: 1.49 KB

Versions: 12

Compression:

Stored size: 1.49 KB

Contents

<% if @order.inventory_units.any? &:shipped? %>
  <div class="toolbar" data-hook="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 => 'spree/admin/shared/order_tabs', :locals => { :current => 'Return Authorizations' } %>

<table class="index">
  <tr data-hook="rma_header">
    <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="<%= spree_dom_id(return_authorization) %>" data-hook="rma_row">
      <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? %>
          &nbsp;
          <%= link_to_delete return_authorization %>
        <% end %>
      </td>

    </tr>
  <% end %>
  <% unless @order.inventory_units.any? &:shipped? %>
    <tr data-hook="rma_cannont_create">
      <td colspan="5"><%= t(:cannot_create_returns) %></td>
    </tr>
  <% end %>
</table>

<%= button_link_to t(:continue), admin_orders_url %>

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
spree_core-1.1.6 app/views/spree/admin/return_authorizations/index.html.erb
spree_core-1.1.5 app/views/spree/admin/return_authorizations/index.html.erb
spree_core-1.1.4 app/views/spree/admin/return_authorizations/index.html.erb
spree_core-1.2.0.rc2 app/views/spree/admin/return_authorizations/index.html.erb
spree_core-1.2.0.rc1 app/views/spree/admin/return_authorizations/index.html.erb
spree_core-1.1.3 app/views/spree/admin/return_authorizations/index.html.erb
spree_core-1.1.2 app/views/spree/admin/return_authorizations/index.html.erb
spree_core-1.1.2.rc1 app/views/spree/admin/return_authorizations/index.html.erb
spree_core-1.1.1 app/views/spree/admin/return_authorizations/index.html.erb
spree_core-1.1.0 app/views/spree/admin/return_authorizations/index.html.erb
spree_core-1.1.0.rc2 app/views/spree/admin/return_authorizations/index.html.erb
spree_core-1.1.0.rc1 app/views/spree/admin/return_authorizations/index.html.erb