26 lines
778 B
Plaintext
26 lines
778 B
Plaintext
<%= form_for(@payment) do |f| %>
|
|
<% if @payment.errors.any? %>
|
|
<div id="error_explanation">
|
|
<h2><%= pluralize(@payment.errors.count, "error") %> prohibited this payment from being saved:</h2>
|
|
|
|
<ul>
|
|
<% @payment.errors.full_messages.each do |msg| %>
|
|
<li><%= msg %></li>
|
|
<% end %>
|
|
</ul>
|
|
</div>
|
|
<% end %>
|
|
|
|
<div class="field">
|
|
<%= f.label :user_id, "User" %><br />
|
|
<%= collection_select(:payment, :user_id, @users, :id, :name_with_payee_and_member_level) %> (inactive members are not shown.)
|
|
</div>
|
|
<div class="field">
|
|
<%= f.label :date, "Paid for month beginning" %><br />
|
|
<%= f.date_select :date, :default => (DateTime.now - 1.month) %>
|
|
</div>
|
|
<div class="actions">
|
|
<%= f.submit %>
|
|
</div>
|
|
<% end %>
|