saucy/app/views/contributions/index.html.erb

31 lines
974 B
Plaintext

<p style="color: green"><%= notice %></p>
<h1><%= t 'contributions.index.title' %></h1>
<table class='zebra'>
<tr>
<th><%= t('contributions.attributes.payment_on') %></th>
<th><%= t('members.attributes.display_name') %></th>
<th><%= t('contributions.attributes.amount') %></th>
<th><%= t('contributions.attributes.payment_method') %></th>
<th><%= t('members.index.actions.title') %></th>
</tr>
<% @contributions.each do |contribution| %>
<tr id="<%= dom_id contribution %>">
<td><%= contribution.payment_on %></td>
<td>
<% if contribution.member %>
<%= contribution.member.number %>. <%= contribution.member.display_name %>
<% else %>
---
<% end %>
</td>
<td><%= contribution.eurocents %></td>
<td><%= contribution.payment_method %></td>
<td>
<%= link_to t('members.index.actions.show'), contribution.member %>
</td>
</tr>
<% end %>
</table>