saucy/app/views/contributions/edit.html.erb

37 lines
1.1 KiB
Plaintext
Raw Normal View History

<h1><%= t('contributions.edit.title') %></h1>
2022-06-25 12:48:46 +00:00
<%= form_with(model: @contribution) do |form| %>
<table>
<tr>
<td><%= t('contributions.edit.member') %></td>
<td>
<%= link_to @contribution.member do %>
<%= @contribution.member.number %>.
<%= @contribution.member.display_name %>
&lt;<%= @contribution.member.email %>&gt;
<% 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 %>