Sha256: a99130ccdffecdc4dff3812f47dbb21b0d66a3c9fdd229ad45c4e82024261ebc

Contents?: true

Size: 1.51 KB

Versions: 12

Compression:

Stored size: 1.51 KB

Contents

<div class="table-responsive border rounded bg-white">
  <table class="table table-condensed border rounded">
    <thead data-hook="customer_return_header">
      <tr>
        <th><%= Spree.t(:number) %></th>
        <th><%= Spree.t(:total) %></th>
        <th><%= Spree.t(:status) %></th>
        <th><%= "#{Spree.t('date')}/#{Spree.t('time')}" %></th>
        <th></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="state <%= reimbursement_status_color(reimbursement) %>">
              <%= reimbursement.reimbursement_status %>
            </span>
          </td>
          <td><%= pretty_time(reimbursement.created_at) %></td>
          <td class="actions">
            <span class="d-flex justify-content-end">
              <% if !reimbursement.reimbursed? %>
                <%= link_to_edit_url(url_for([:edit, :admin, @order, reimbursement]), title: "admin_edit_#{dom_id(reimbursement)}", no_text: true) if can?(:edit, reimbursement) %>
              <% end %>
            </span>
          </td>
        </tr>
      <% end %>
    </tbody>
  </table>
</div>

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
spree_backend-4.8.4 app/views/spree/admin/customer_returns/_reimbursements_table.html.erb
spree_backend-4.8.3 app/views/spree/admin/customer_returns/_reimbursements_table.html.erb
spree_backend-4.8.2 app/views/spree/admin/customer_returns/_reimbursements_table.html.erb
spree_backend-4.8.1 app/views/spree/admin/customer_returns/_reimbursements_table.html.erb
spree_backend-4.7.2 app/views/spree/admin/customer_returns/_reimbursements_table.html.erb
spree_backend-4.6.2 app/views/spree/admin/customer_returns/_reimbursements_table.html.erb
spree_backend-4.7.1 app/views/spree/admin/customer_returns/_reimbursements_table.html.erb
spree_backend-4.7.0 app/views/spree/admin/customer_returns/_reimbursements_table.html.erb
spree_backend-4.6.1 app/views/spree/admin/customer_returns/_reimbursements_table.html.erb
spree_backend-4.6.0 app/views/spree/admin/customer_returns/_reimbursements_table.html.erb
spree_backend-4.5.1 app/views/spree/admin/customer_returns/_reimbursements_table.html.erb
spree_backend-4.5.0 app/views/spree/admin/customer_returns/_reimbursements_table.html.erb