56 lines
1.7 KiB
Plaintext
56 lines
1.7 KiB
Plaintext
<h1><%= t('contributions.new.title') %></h1>
|
|
|
|
<%= form_with(model: [@member, @contribution]) do |form| %>
|
|
<table class="new_contribution_form">
|
|
<tr>
|
|
<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>
|
|
<td><%= form.number_field :eurocents %></td>
|
|
</tr>
|
|
<tr>
|
|
<td><label for="contribution_payment_on"><%= t('contributions.attributes.payment_on') %></label></td>
|
|
<td><%= form.date_field :payment_on %></td>
|
|
</tr>
|
|
<tr>
|
|
<td><label for="contribution_payment_method"><%= t('contributions.attributes.payment_method') %></label></td>
|
|
<td><%= form.select :payment_method, %w[iban mbway multibanco] %></td>
|
|
</tr>
|
|
<tr>
|
|
<td><label for="contribution_payment_reference"><%= t('contributions.attributes.payment_reference') %></label></td>
|
|
<td><%= form.text_field :payment_reference %></td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan=2>
|
|
<%= t('contributions.new.expires_on_warning') %>
|
|
</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><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 %>
|