%= form_for(@payment) do |f| %>
<% if @payment.errors.any? %>
<%= pluralize(@payment.errors.count, "error") %> prohibited this payment from being saved:
<% @payment.errors.full_messages.each do |msg| %>
- <%= msg %>
<% end %>
<% end %>
<%= f.label :user_id, "User" %>
<%= collection_select(:payment, :user_id, @users, :id, :name_with_payee_and_member_level) %> (inactive members are not shown.)
<%= f.label :date, "Paid for month beginning" %>
<%= f.date_select :date, :default => (DateTime.now - 1.month) %>
<%= f.label :amount %>
<%= f.number_field :amount %>
<%= f.submit %>
<% end %>