Sha256: 2de4d3c491f9f0aeb60fa25a733ee5445003b187967f72b563b0fb168270b937

Contents?: true

Size: 1.49 KB

Versions: 5

Compression:

Stored size: 1.49 KB

Contents

<table class="index customer-return-reimbursements">
  <thead data-hook="customer_return_header">
    <tr>
      <th><%= Spree::Reimbursement.human_attribute_name(:number) %></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>
      <th class="actions"></th>
    </tr>
  </thead>
  <tbody>
    <% reimbursements.each do |reimbursement| %>
      <tr id="<%= spree_dom_id(reimbursement) %>" data-hook="reimbursement_row">
        <td>
          <% if reimbursement.reimbursed? %>
            <%= link_to reimbursement.number, url_for([:admin, @order, reimbursement]) %>
          <% else %>
            <%= reimbursement.number %>
          <% end %>
        </td>
        <td><%= reimbursement.display_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>
        <td class="actions">
          <% if !reimbursement.reimbursed? %>
            <%= link_to_edit_url url_for([:edit, :admin, @order, reimbursement]), title: "admin_edit_#{dom_id(reimbursement)}", no_text: true %>
          <% end %>
        </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/customer_returns/_reimbursements_table.html.erb
solidus_backend-2.4.1 app/views/spree/admin/customer_returns/_reimbursements_table.html.erb
solidus_backend-2.4.0 app/views/spree/admin/customer_returns/_reimbursements_table.html.erb
solidus_backend-2.4.0.rc1 app/views/spree/admin/customer_returns/_reimbursements_table.html.erb
solidus_backend-2.4.0.beta1 app/views/spree/admin/customer_returns/_reimbursements_table.html.erb