Sha256: cc540c12614125ce51956e6d59636e90384b3ed28490f32cf90b1b4684f5255a

Contents?: true

Size: 1.21 KB

Versions: 8

Compression:

Stored size: 1.21 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 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 %>"><%= 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 "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

8 entries across 8 versions & 1 rubygems

Version Path
spree_backend-2.1.1 app/views/spree/admin/payments/_list.html.erb
spree_backend-2.0.5 app/views/spree/admin/payments/_list.html.erb
spree_backend-2.1.0 app/views/spree/admin/payments/_list.html.erb
spree_backend-2.0.4 app/views/spree/admin/payments/_list.html.erb
spree_backend-2.0.3 app/views/spree/admin/payments/_list.html.erb
spree_backend-2.0.2 app/views/spree/admin/payments/_list.html.erb
spree_backend-2.0.1 app/views/spree/admin/payments/_list.html.erb
spree_backend-2.0.0 app/views/spree/admin/payments/_list.html.erb