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