2022-06-25 20:27:02 +00:00
|
|
|
<h1><%= t('contributions.new.title') %></h1>
|
2022-06-25 12:48:46 +00:00
|
|
|
|
|
|
|
<%= form_with(model: [@member, @contribution]) do |form| %>
|
|
|
|
<table class="new_contribution_form">
|
|
|
|
<tr>
|
2022-06-25 20:27:02 +00:00
|
|
|
<td><%= t('contributions.new.member') %></td>
|
|
|
|
<td>
|
|
|
|
<%= link_to @member do %>
|
|
|
|
<%= @member.number %>.
|
|
|
|
<%= @member.display_name %>
|
|
|
|
<<%= @member.email %>>
|
|
|
|
<% end %>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td><label for="contribution_eurocents"><%= t('contributions.attributes.amount') %></label></td>
|
2022-06-25 12:48:46 +00:00
|
|
|
<td><%= form.number_field :eurocents %></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
2022-06-25 20:27:02 +00:00
|
|
|
<td><label for="contribution_payment_on"><%= t('contributions.attributes.payment_on') %></label></td>
|
2022-06-25 12:48:46 +00:00
|
|
|
<td><%= form.date_field :payment_on %></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
2022-06-25 20:27:02 +00:00
|
|
|
<td><label for="contribution_payment_method"><%= t('contributions.attributes.payment_method') %></label></td>
|
2022-06-25 12:48:46 +00:00
|
|
|
<td><%= form.select :payment_method, %w[iban mbway multibanco] %></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
2022-06-25 20:27:02 +00:00
|
|
|
<td><label for="contribution_payment_reference"><%= t('contributions.attributes.payment_reference') %></label></td>
|
2022-06-25 12:48:46 +00:00
|
|
|
<td><%= form.text_field :payment_reference %></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td colspan=2>
|
2022-06-25 20:27:02 +00:00
|
|
|
<%= t('contributions.new.expires_on_warning') %>
|
2022-06-25 12:48:46 +00:00
|
|
|
</td>
|
|
|
|
</tr>
|
2022-06-25 20:27:02 +00:00
|
|
|
<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>
|
2022-06-25 12:48:46 +00:00
|
|
|
<tr>
|
|
|
|
<td><label for="member_expires_on">Nova data de expiração</label></td>
|
|
|
|
<td>
|
|
|
|
<%= form.date_field :overriden_expires_on %>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
|
|
|
|
<div>
|
|
|
|
<%= form.submit %>
|
|
|
|
</div>
|
|
|
|
<% end %>
|