2022-06-25 20:27:02 +00:00
|
|
|
<h1><%= t('contributions.edit.title') %></h1>
|
2022-06-25 12:48:46 +00:00
|
|
|
|
|
|
|
<%= form_with(model: @contribution) do |form| %>
|
2022-06-25 20:27:02 +00:00
|
|
|
<table>
|
|
|
|
<tr>
|
|
|
|
<td><%= t('contributions.edit.member') %></td>
|
|
|
|
<td>
|
|
|
|
<%= link_to @contribution.member do %>
|
|
|
|
<%= @contribution.member.number %>.
|
|
|
|
<%= @contribution.member.display_name %>
|
|
|
|
<<%= @contribution.member.email %>>
|
|
|
|
<% end %>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td><label><%= t('contributions.attributes.amount') %></label></td>
|
|
|
|
<td><%= form.number_field :eurocents, required: true %></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td><label><%= t('contributions.attributes.payment_on') %></label></td>
|
|
|
|
<td><%= form.date_field :payment_on %></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td><label><%= t('contributions.attributes.payment_method') %></label></td>
|
|
|
|
<td><%= form.select :payment_method, %w[iban mbway multibanco] %></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td><label><%= t('contributions.attributes.payment_reference') %></label></td>
|
|
|
|
<td><%= form.text_field :payment_reference %></td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
|
|
|
|
<div>
|
|
|
|
<%= form.submit t('contributions.edit.actions.submit') %>
|
|
|
|
</div>
|
2022-06-25 12:48:46 +00:00
|
|
|
<% end %>
|