saucy/app/views/members/show.html.erb

41 lines
1.5 KiB
Plaintext
Raw Normal View History

2022-06-25 12:48:46 +00:00
<p style="color: green"><%= notice %></p>
<h1><%= t('members.show.title') %></h1>
<table>
<tr><td><%= t('members.attributes.display_name') %></td><td><%= @member.display_name %></td></tr>
<tr><td><%= t('members.attributes.email') %></td><td><%= @member.email %></td></tr>
<tr><td><%= t('members.attributes.category') %></td><td><%= @member.category %></td></tr>
<tr><td><%= t('members.attributes.identification_number') %></td><td><%= @member.identification_number %></td></tr>
<tr><td><%= t('members.attributes.address') %></td><td><%= simple_format @member.address %></td></tr>
<tr><td><%= t('members.attributes.joined_on') %></td><td><%= @member.joined_on %></td></tr>
<tr><td><%= t('members.attributes.expires_on') %></td><td><%= @member.expires_on %></td></tr>
<tr><td><%= t('members.attributes.status') %></td><td><%= @member.status %></td></tr>
</table>
<div>
<%= link_to t('members.show.actions.edit'), edit_member_path(@member) %>
</div>
<h2><%= t('members.show.contribution_history') %></h2>
<table>
<tr>
<th>Payment date</th>
<th>Payment method</th>
<th>Payment reference</th>
<th>Amount</th>
</tr>
<% @member.contributions.each do |contribution| %>
<tr>
<td><%= contribution.payment_on %></td>
<td><%= contribution.payment_method %></td>
<td><%= contribution.payment_reference %></td>
<td>€<%= contribution.eurocents %></td>
<td>
<%= link_to t('members.show.actions.edit_contribution'), edit_contribution_path(contribution) %>
</td>
</tr>
<% end %>
</table>