Sha256: 07be3010cb6bfd5b5c468194c73c9bd92a36a6a00289e0ef139dc4e4d0bd74b3
Contents?: true
Size: 1.22 KB
Versions: 6
Compression:
Stored size: 1.22 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 %></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
6 entries across 6 versions & 2 rubygems