<%= notice %>

<%= t('members.show.title') %>

<%= t('members.attributes.display_name') %><%= @member.number %>. <%= @member.display_name %>
<%= t('members.attributes.legal_name') %><%= @member.legal_name %>
<%= t('members.attributes.pronouns') %><%= @member.pronouns %>
<%= t('members.attributes.email') %><%= @member.email %>
<%= t('members.attributes.category') %><%= @member.category %>
<%= t('members.attributes.identification_number') %><%= @member.identification_number %>
<%= t('members.attributes.address') %><%= simple_format @member.address %>
<%= t('members.attributes.wants_mailing_list') %><%= bool_option @member.wants_mailing_list %>
<%= t('members.attributes.prefers_postal') %><%= bool_option @member.prefers_postal %>
<%= t('members.attributes.joined_on') %><%= @member.joined_on %>
<%= t('members.attributes.expires_on') %><%= @member.expires_on %>
<%= t('members.attributes.status') %><%= @member.status %>
<%= t('members.attributes.regular_ifthenpay_link') %><% if @member.regular_ifthenpay_link %><%= link_to @member.regular_ifthenpay_link, @member.regular_ifthenpay_link %><% end %>
<%= t('members.attributes.reduced_ifthenpay_link') %><% if @member.reduced_ifthenpay_link %><%= link_to @member.reduced_ifthenpay_link, @member.reduced_ifthenpay_link %><% end %>
<%= link_to t('members.show.actions.edit'), edit_member_path(@member) %>
<%= link_to t('members.show.actions.delete'), delete_member_path(@member) %>
<%- if @member.status == "pending" %>
<%= form_with url: resend_registration_member_path(@member) do |form| %> <%= form.submit t('members.show.actions.resend_registration') %> <% end %>
<%- end %>

<%= t('members.show.contribution_history') %>

<% @member.contributions.order(payment_on: :asc).each do |contribution| %> <% end %>
<%= t('contributions.attributes.payment_on') %> <%= t('contributions.attributes.payment_method') %> <%= t('contributions.attributes.payment_reference') %> <%= t('contributions.attributes.amount') %>
<%= contribution.payment_on %> <%= contribution.payment_method %> <%= contribution.payment_reference %> €<%= contribution.eurocents %>
  • <%= link_to t('members.show.actions.edit_contribution'), edit_contribution_path(contribution) %>
  • <%= link_to t('members.show.actions.delete_contribution'), delete_contribution_path(contribution) %>
<%= link_to t('members.index.actions.new_contribution'), new_member_contribution_path(@member) %>

<%= t('members.show.notifications') %>

<% @member.notifications.order(to_be_sent_on: :asc).each do |notification| %> <% end %>
<%= t('notifications.attributes.to_be_sent_on') %> <%= t('notifications.attributes.template') %> <%= t('notifications.attributes.status') %> <%= t('members.show.contribution_actions') %>
<%= notification.to_be_sent_on %> <%= notification.template %> <%= notification_status(notification.status) %> <% if notification.status == 'sent' %> (<%= notification.sent_at %>) <% end %> <% if notification.status == 'scheduled' %> <%= form_with url: deliver_notification_path(notification) do |form| %> <%= form.submit t('members.show.actions.deliver_notification') %> <% end %> <% end %>
<%# link_to "Enviar email de confirmação de inscrição", new_member_message_path(@member, type: :welcome) %>