Sha256: a5b12fbaf596ce9647b912b142fb58774f6a7fe58b6cbd89687fb3502eec82ba

Contents?: true

Size: 1.72 KB

Versions: 14

Compression:

Stored size: 1.72 KB

Contents

<table class="index" id='payments' data-order-id='<%= @order.number %>'>
  <thead>
    <tr data-hook="payments_header">
      <th><%= Spree.t(:identifier) %></th>
      <th><%= "#{Spree.t('date')}/#{Spree.t('time')}" %></th>
      <th><%= Spree.t(:amount) %></th>
      <th><%= Spree.t(:payment_method) %></th>
      <th><%= Spree.t(:transaction_id) %></th>
      <th><%= Spree.t(:payment_state) %></th>
      <th class="actions"></th>
    </tr>
  </thead>
  <tbody>
    <% payments.each do |payment| %>
      <tr id="<%= dom_id(payment) %>" data-hook="payments_row" class="<%= cycle('odd', 'even', name: 'payment_table_cycle')%>">
        <td><%= link_to payment.identifier, spree.admin_order_payment_path(@order, payment) %></td>
        <td><%= pretty_time(payment.created_at) %></td>
        <td class="align-center amount"><%= payment.display_amount.to_html %></td>
        <td class="align-center"><%= payment_method_name(payment) %></td>
        <td class="align-center"><%= payment.transaction_id %></td>
        <td class="align-center"> <span class="state <%= payment.state %>"><%= Spree.t(payment.state, :scope => :payment_states, :default => payment.state.capitalize) %></span></td>
        <td class="actions">
          <% payment.actions.each do |action| %>
            <% if action == 'credit' %>
              <%= link_to_with_icon 'reply', Spree.t(:refund), new_admin_order_payment_refund_path(@order, payment), no_text: true %>
            <% else %>
              <%= link_to_with_icon action, Spree.t(action), fire_admin_order_payment_path(@order, payment, :e => action), :method => :put, :no_text => true, :data => {:action => action} %>
            <% end %>
          <% end %>
        </td>
      </tr>
    <% end %>
  </tbody>
</table>

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
spree_backend-2.4.10 app/views/spree/admin/payments/_list.html.erb
spree_backend-2.4.9 app/views/spree/admin/payments/_list.html.erb
spree_backend-2.4.8 app/views/spree/admin/payments/_list.html.erb
spree_backend-2.4.7 app/views/spree/admin/payments/_list.html.erb
spree_backend-2.4.6 app/views/spree/admin/payments/_list.html.erb
spree_backend-2.4.5 app/views/spree/admin/payments/_list.html.erb
spree_backend-2.4.4 app/views/spree/admin/payments/_list.html.erb
spree_backend-2.4.3 app/views/spree/admin/payments/_list.html.erb
spree_backend-2.4.2 app/views/spree/admin/payments/_list.html.erb
spree_backend-2.4.1 app/views/spree/admin/payments/_list.html.erb
spree_backend-2.4.0 app/views/spree/admin/payments/_list.html.erb
spree_backend-2.4.0.rc3 app/views/spree/admin/payments/_list.html.erb
spree_backend-2.4.0.rc2 app/views/spree/admin/payments/_list.html.erb
spree_backend-2.4.0.rc1 app/views/spree/admin/payments/_list.html.erb