Sha256: 6e43d7ce4be341c01de1860c57056ea63320b8c0c9daa136afcf81d9e826863d
Contents?: true
Size: 1.61 KB
Versions: 11
Compression:
Stored size: 1.61 KB
Contents
<div class="table-responsive"> <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><%= link_to refund.payment.number, spree.admin_order_payment_path(refund.payment.order, refund.payment) %></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"> <span class="d-flex justify-content-end"> <%= link_to_with_icon('edit.svg', Spree.t(:edit), edit_admin_order_payment_refund_path(refund.payment.order, refund.payment, refund), no_text: true, class: "btn btn-outline-secondary btn-sm") if can?(:edit, refund) %> </span> </td> <% end %> </tr> <% end %> </tbody> </table> </div>
Version data entries
11 entries across 11 versions & 1 rubygems