<%= render :partial => 'spree/admin/shared/order_tabs', :locals => { :current => 'Customer Returns' } %> <% content_for :page_actions do %>
  • <%= button_link_to Spree.t(:new_customer_return), spree.new_admin_order_customer_return_path(@order), icon: 'plus' %>
  • <%= button_link_to Spree.t(:back_to_orders_list), spree.admin_orders_path, :icon => 'arrow-left' %>
  • <% end %> <% content_for :page_title do %> <%= Spree.t(:customer_returns) %> <% end %> <% if @customer_returns.any? %> <% @customer_returns.each do |customer_return| %> <% end %>
    <%= Spree.t(:return_number) %> <%= Spree.t(:pre_tax_total) %> <%= Spree.t(:total) %> <%= "#{Spree.t('date')}/#{Spree.t('time')}" %> <%= Spree.t(:reimbursement_status) %>
    <%= link_to customer_return.number, edit_admin_order_customer_return_path(@order, customer_return) %> <%= customer_return.display_pre_tax_total.to_html %> <%= customer_return.display_total.to_html %> <%= pretty_time(customer_return.created_at) %> <% if customer_return.fully_reimbursed? %> <%= Spree.t(:reimbursed) %> <% else %> <%= Spree.t(:incomplete) %> <% end %> <%= link_to_edit_url edit_admin_order_customer_return_path(@order, customer_return), title: "admin_edit_#{dom_id(customer_return)}", no_text: true %>
    <% else %>
    <%= Spree.t(:no_resource_found, resource: I18n.t(:other, scope: 'activerecord.models.spree/customer_return')) %>, <%= link_to Spree.t(:add_one), spree.new_admin_order_customer_return_path(@order) %>!
    <% end %>