Sha256: 561b8387da12436a38ee05c6ea8c401c4cec2c103a616eebc3f7d976ae471671

Contents?: true

Size: 1.35 KB

Versions: 5

Compression:

Stored size: 1.35 KB

Contents

<%= render partial: 'spree/admin/shared/order_tabs', locals: { current: 'Reimbursements' } %>

<% admin_breadcrumb(plural_resource_name(Spree::Reimbursement)) %>

<% content_for :page_actions do %>
  <li><%= button_link_to Spree.t(:back_to_customer_return_list), spree.admin_order_customer_returns_url(@order) %></li>
<% end %>

<%= render partial: 'spree/shared/error_messages', locals: { target: @customer_return } %>

<table class="index">
  <thead data-hook="customer_return_header">
    <tr>
      <th><%= Spree.t(:id) %></th>
      <th><%= Spree::Reimbursement.human_attribute_name(:total) %></th>
      <th><%= Spree::Reimbursement.human_attribute_name(:reimbursement_status) %></th>
      <th><%= Spree::Reimbursement.human_attribute_name(:created_at) %></th>
    </tr>
  </thead>
  <tbody>
    <% @reimbursements.each do |reimbursement| %>
      <tr id="<%= spree_dom_id(reimbursement) %>" data-hook="reimbursement_row">
        <td><%= reimbursement.id %></td>
        <td><%= reimbursement.total %></td>
        <td>
          <span class="pill pill-<%= reimbursement.reimbursement_status %>">
            <%= Spree.t(
              reimbursement.reimbursement_status,
              scope: :reimbursement_states
            ) %>
          </span>
        </td>
        <td><%= pretty_time(reimbursement.created_at) %></td>
      </tr>
    <% end %>
  </tbody>
</table>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
solidus_backend-2.4.2 app/views/spree/admin/reimbursements/index.html.erb
solidus_backend-2.4.1 app/views/spree/admin/reimbursements/index.html.erb
solidus_backend-2.4.0 app/views/spree/admin/reimbursements/index.html.erb
solidus_backend-2.4.0.rc1 app/views/spree/admin/reimbursements/index.html.erb
solidus_backend-2.4.0.beta1 app/views/spree/admin/reimbursements/index.html.erb