2013-02-12 08:58:17 +00:00
|
|
|
<h1>Listing payments</h1>
|
|
|
|
|
2013-08-28 12:15:50 +00:00
|
|
|
<p>
|
|
|
|
<b>Create Payments:</b>
|
|
|
|
<%= link_to 'Manually', new_payment_path %> |
|
|
|
|
<%= link_to 'Batched CSV', paypal_csvs_path %> |
|
|
|
|
<%= link_to 'IPN', ipns_path %>
|
|
|
|
</p>
|
|
|
|
|
2013-02-12 08:58:17 +00:00
|
|
|
<table>
|
|
|
|
<tr>
|
2013-08-29 08:23:21 +00:00
|
|
|
<th>Payee</th>
|
2013-02-12 08:58:17 +00:00
|
|
|
<th>User</th>
|
2013-08-29 08:23:21 +00:00
|
|
|
<th>Member level</th>
|
|
|
|
<th>Last Payment</th>
|
2013-08-24 09:18:37 +00:00
|
|
|
<th>Amount</th>
|
2013-02-12 08:58:17 +00:00
|
|
|
<th></th>
|
|
|
|
<th></th>
|
|
|
|
<th></th>
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
<% @payments.each do |payment| %>
|
|
|
|
<tr>
|
2013-08-29 08:23:21 +00:00
|
|
|
<td><%= payment.user.payee unless payment.user.blank? %></td>
|
|
|
|
<td><%= link_to payment.user.name, payment.user unless payment.user.blank? %></td>
|
|
|
|
<td><%= payment.user.member_level_string unless payment.user.blank? %></td>
|
|
|
|
<td><%= payment.date %></td>
|
2013-08-24 09:18:37 +00:00
|
|
|
<td><%= payment.amount %></td>
|
2013-02-12 08:58:17 +00:00
|
|
|
<td><%= link_to 'Details', payment %></td>
|
|
|
|
<td><%= link_to 'Edit', edit_payment_path(payment) %></td>
|
|
|
|
</tr>
|
|
|
|
<% end %>
|
|
|
|
</table>
|
|
|
|
|
|
|
|
|