Sha256: fc5900a470be768d48c3cea481fa9835e441f08ccced64779e6854f2e9bddd44

Contents?: true

Size: 1.36 KB

Versions: 3

Compression:

Stored size: 1.36 KB

Contents

<table class="table table-condensed table-bordered" id='refunds' data-order-id='<%= @order.number %>'>
  <thead>
    <tr data-hook="refunds_header">
      <th><%= "#{Spree.t('date')}/#{Spree.t('time')}" %></th>
      <th><%= Spree.t(:payment_identifier) %></th>
      <th><%= Spree.t(:amount) %></th>
      <th><%= Spree.t(:payment_method) %></th>
      <th><%= Spree.t(:transaction_id) %></th>
      <th><%= Spree.t(:reason) %></th>
      <% if show_actions %>
        <th></th>
      <% end %>
    </tr>
  </thead>
  <tbody>
    <% refunds.each do |refund| %>
      <tr id="<%= dom_id(refund) %>" data-hook="refunds_row" class="<%= cycle('odd', 'even', name: 'refund_table_cycle')%>">
        <td><%= pretty_time(refund.created_at) %></td>
        <td><%= refund.payment.identifier %></td>
        <td class="amount"><%= refund.display_amount %></td>
        <td><%= payment_method_name(refund.payment) %></td>
        <td><%= refund.transaction_id %></td>
        <td><%= truncate(refund.reason.name, length: 100) %></td>
        <% if show_actions %>
          <td class="actions actions-1">
            <%= link_to_with_icon('edit', Spree.t(:edit), edit_admin_order_payment_refund_path(refund.payment.order, refund.payment, refund), no_text: true, :class => "btn btn-default btn-sm") if can?(:edit, refund) %>
          </td>
        <% end %>
      </tr>
    <% end %>
  </tbody>
</table>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
spree_backend-3.0.0 app/views/spree/admin/shared/_refunds.html.erb
spree_backend-3.0.0.rc4 app/views/spree/admin/shared/_refunds.html.erb
spree_backend-3.0.0.rc3 app/views/spree/admin/shared/_refunds.html.erb