27 lines
597 B
Plaintext
27 lines
597 B
Plaintext
<h1>Listing payments</h1>
|
|
|
|
<%= link_to 'New Payment', new_payment_path %>
|
|
<br />
|
|
<table>
|
|
<tr>
|
|
<th>User</th>
|
|
<th>Paid for month <br/>beginning</th>
|
|
<th>Amount</th>
|
|
<th></th>
|
|
<th></th>
|
|
<th></th>
|
|
</tr>
|
|
|
|
<% @payments.each do |payment| %>
|
|
<tr>
|
|
<td><%= link_to payment.user.name_with_payee_and_member_level, payment.user unless payment.user.blank? %></td>
|
|
<td><%= payment.human_date %></td>
|
|
<td><%= payment.amount %></td>
|
|
<td><%= link_to 'Details', payment %></td>
|
|
<td><%= link_to 'Edit', edit_payment_path(payment) %></td>
|
|
</tr>
|
|
<% end %>
|
|
</table>
|
|
|
|
|