<%= t('contributions.new.title') %>

<%= form_with(model: [@member, @contribution]) do |form| %>
<%= t('contributions.new.member') %> <%= link_to @member do %> <%= @member.number %>. <%= @member.display_name %> <<%= @member.email %>> <% end %>
<%= form.number_field :eurocents %>
<%= form.date_field :payment_on %>
<%= form.select :payment_method, %w[iban mbway multibanco] %>
<%= form.text_field :payment_reference %>
<%= t('contributions.new.expires_on_warning') %>
<%= t('members.attributes.joined_on') %> <%= @member.joined_on %>
<%= t('members.attributes.expires_on') %> <%= @member.expires_on %>
<%= form.date_field :overriden_expires_on %>
<%= form.submit %>
<% end %>