Sha256: 77b9a81aaaf1386cbbf56000c964b5e4e00bea9abbbc66b020093551490facd4
Contents?: true
Size: 1.89 KB
Versions: 1
Compression:
Stored size: 1.89 KB
Contents
<table class="table table-bordered" id='payments' data-order-id='<%= @order.number %>'> <thead> <tr data-hook="payments_header"> <th><%= Spree::Payment.human_attribute_name(:number) %></th> <th><%= "#{Spree.t('date')}/#{Spree.t('time')}" %></th> <th class="text-center"><%= Spree.t(:amount) %></th> <th class="text-center"><%= Spree.t(:payment_method) %></th> <th class="text-center"><%= Spree.t(:transaction_id) %></th> <th class="text-center"><%= Spree.t(:payment_state) %></th> <th class="actions text-center"></th> </tr> </thead> <tbody> <% payments.each do |payment| %> <tr id="<%= dom_id(payment) %>" data-hook="payments_row"> <td><%= link_to payment.number, spree.admin_order_payment_path(@order, payment) %></td> <td><%= pretty_time(payment.created_at) %></td> <td class="amount text-center"><%= payment.display_amount %></td> <td class="text-center"><%= payment_method_name(payment) %></td> <td class="text-center"><%= payment.transaction_id %></td> <td class="text-center"> <span class="label label-<%= payment.state %>"> <%= Spree.t(payment.state, scope: :payment_states, default: payment.state.capitalize) %> </span> </td> <td class="actions actions-2 text-center"> <% payment.actions.each do |action| %> <% if action == 'credit' %> <%= link_to_with_icon 'refund', Spree.t(:refund), new_admin_order_payment_refund_path(@order, payment), no_text: true, class: "btn btn-default btn-sm" %> <% else %> <%= 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 }, class: "btn btn-default btn-sm" %> <% end %> <% end %> </td> </tr> <% end %> </tbody> </table>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
spree_backend-3.0.0.rc1 | app/views/spree/admin/payments/_list.html.erb |