Sha256: 2b69c1fcee9b8dfae506d72de045564d4635b5470ce2dc812d062d7e548c3fd7

Contents?: true

Size: 1.3 KB

Versions: 10

Compression:

Stored size: 1.3 KB

Contents

<% unless @order.returnable_units.nil? %>
  <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 %>
        &nbsp;
        <%= link_to_delete return_authorization %>
      </td>

    </tr>
  <% end %>
  <% if @order.shipped_units.nil? %>
    <tr>
      <td colspan="5"><%= t("cannot_create_returns") %></td>
    </tr>
  <% end %>
</table>

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

Version data entries

10 entries across 10 versions & 2 rubygems

Version Path
spree-0.11.4 vendor/extensions/theme_default/app/views/admin/return_authorizations/index.html.erb
spree-0.11.3 vendor/extensions/theme_default/app/views/admin/return_authorizations/index.html.erb
spree-0.11.2 vendor/extensions/theme_default/app/views/admin/return_authorizations/index.html.erb
spree-0.11.1 vendor/extensions/theme_default/app/views/admin/return_authorizations/index.html.erb
spree_core-0.30.0.beta1 app/views/admin/return_authorizations/index.html.erb
spree-0.11.0 vendor/extensions/theme_default/app/views/admin/return_authorizations/index.html.erb
spree-0.10.2 vendor/extensions/theme_default/app/views/admin/return_authorizations/index.html.erb
spree-0.10.1 vendor/extensions/theme_default/app/views/admin/return_authorizations/index.html.erb
spree-0.10.0 vendor/extensions/theme_default/app/views/admin/return_authorizations/index.html.erb
spree-0.10.0.beta vendor/extensions/theme_default/app/views/admin/return_authorizations/index.html.erb