Sha256: 907591ed583e22d7d7a90a0090ddeff88186de8cd243c332ded8530aefa68574

Contents?: true

Size: 1.23 KB

Versions: 13

Compression:

Stored size: 1.23 KB

Contents

<table class="index">
  <thead>
    <tr data-hook="payments_header">
      <th><%= "#{Spree.t('date')}/#{Spree.t('time')}" %></th>
      <th><%= Spree.t(:amount) %></th>
      <th><%= Spree.t(:payment_method) %></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')%>">
        <td><%= link_to pretty_time(payment.created_at), spree.admin_order_payment_path(@order, payment) %></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"> <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| %>
            <%= 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 %>
        </td>
      </tr>
    <% end %>
  </tbody>
</table>

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
spree_backend-2.2.14 app/views/spree/admin/payments/_list.html.erb
spree_backend-2.2.13 app/views/spree/admin/payments/_list.html.erb
spree_backend-2.2.12 app/views/spree/admin/payments/_list.html.erb
spree_backend-2.2.11 app/views/spree/admin/payments/_list.html.erb
spree_backend-2.2.10 app/views/spree/admin/payments/_list.html.erb
spree_backend-2.2.9 app/views/spree/admin/payments/_list.html.erb
spree_backend-2.2.8 app/views/spree/admin/payments/_list.html.erb
spree_backend-2.2.7 app/views/spree/admin/payments/_list.html.erb
spree_backend-2.2.6 app/views/spree/admin/payments/_list.html.erb
spree_backend-2.2.5 app/views/spree/admin/payments/_list.html.erb
spree_backend-2.2.4 app/views/spree/admin/payments/_list.html.erb
spree_backend-2.2.3 app/views/spree/admin/payments/_list.html.erb
spree_backend-2.2.2 app/views/spree/admin/payments/_list.html.erb