Sha256: c6538fc755c45c12d744fd76ad157dc2c237c5a5585f53999811d21a8b3e3d63

Contents?: true

Size: 1.23 KB

Versions: 3

Compression:

Stored size: 1.23 KB

Contents

<table class="index">
  <thead>
    <tr data-hook="payments_header">
      <th><%= "#{t('spree.date')}/#{t('spree.time')}" %></th>
      <th><%= t(:amount, :scope => 'activerecord.attributes.spree/payment') %></th>
      <th><%= t(:payment_method) %></th>
      <th><%= t(:payment_state) %></th>
      <th class="actions"></th>
    </tr>
  </thead>
  <tbody>
    <% payments.each do |payment| %>
      <tr data-hook="payments_row" class="<%= cycle('odd', 'even')%>">
        <td><%= pretty_time(payment.created_at) %></td>
        <td class='align-center'><%= payment.display_amount.to_html %></td>
        <td class="align-center"><%= link_to payment_method_name(payment), spree.admin_order_payment_path(@order, payment) %></td>
        <td class="align-center"> <span class="state <%= payment.state %>"><%= t(payment.state, :scope => :payment_states, :default => payment.state.capitalize) %></span></td>
        <td class="actions">
          <% payment.actions.each do |action| %>
            <%= link_to_with_icon "icon-#{action}", 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

3 entries across 3 versions & 1 rubygems

Version Path
spree_core-1.3.5 app/views/spree/admin/payments/_list.html.erb
spree_core-1.3.4 app/views/spree/admin/payments/_list.html.erb
spree_core-1.3.3 app/views/spree/admin/payments/_list.html.erb