forked from solidusio/solidus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_payments.html.erb
41 lines (41 loc) · 1.45 KB
/
_payments.html.erb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<fieldset class="no-border-bottom">
<legend><%= plural_resource_name(Spree::Payment) %></legend>
<table class="index">
<thead>
<tr data-hook="payments_header">
<th><%= Spree::Payment.human_attribute_name(:number) %></th>
<th><%= Spree::Payment.human_attribute_name(:created_at) %></th>
<th><%= Spree::Payment.human_attribute_name(:amount) %></th>
<th><%= Spree::PaymentMethod.model_name.human %></th>
<th><%= Spree::Payment.human_attribute_name(:response_code) %></th>
<th><%= Spree::Payment.human_attribute_name(:state) %></th>
</tr>
</thead>
<tbody>
<% payments.each do |payment| %>
<tr>
<td>
<%= link_to payment.number, spree.admin_order_payment_path(@order, payment) %>
</td>
<td>
<%= pretty_time(payment.created_at) %>
</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">
<%= payment.transaction_id %>
</td>
<td class="align-center">
<span class="state <%= payment.state %>">
<%= Spree.t(payment.state, :scope => :payment_states, :default => payment.state.capitalize) %>
</span>
</td>
</tr>
<% end %>
</tbody>
</table>
</fieldsset>