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

60 lines
1.9 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 %>
&lt;<%= @member.email %>&gt;
<% 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><label for="contribution_should_send_notification"><%= t('contributions.attributes.should_send_notification') %></label></td>
<td><%= form.check_box :should_send_notification, checked: true %></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 %>