%= form_for(@user) do |f| %>
<% if @user.errors.any? %>
<%= pluralize(@user.errors.count, "error") %> prohibited this user from being saved:
<% @user.errors.full_messages.each do |msg| %>
- <%= msg %>
<% end %>
<% end %>
<%= f.label :name %>
<%= f.text_field :name %>
<%= f.label :email %>
<%= f.email_field :email %>
<%= f.label :waiver %>
<%= f.date_select :waiver, :include_blank => 'true', :default => 'nil' %>
<%= f.label :orientation %>
<%= f.date_select :orientation, :include_blank => 'true', :default => 'nil' %>
<%= f.label :emergency_name %>
<%= f.text_field :emergency_name %>
<%= f.label :emergency_phone %>
<%= f.text_field :emergency_phone %>
<%= f.label :emergency_email %>
<%= f.text_field :emergency_email %>
<%= f.label :member_level %>
<%= f.text_field :member_level %>
<%= f.label :payment_method %>
<%= f.text_field :payment_method %>
<%= f.label :phone %>
<%= f.text_field :phone %>
<%= f.label :current_skills %>
<%= f.text_area :current_skills %>
<%= f.label :desired_skills %>
<%= f.text_area :desired_skills %>
<% if @user.id.blank? || !params[:password].nil? %>
<%= f.label :password %>
<%= f.password_field :password, :autocomplete => "off" %>
<%= f.label :password_confirmation %>
<%= f.password_field :password_confirmation %>
<% else %>
<% end %>
<%= f.label :active, "Active?" %>
<%= f.check_box :active %>
<%= f.label :admin, "Admin?" %>
<%= f.check_box :admin %>
Cards
<% @user.cards.each do |c| %>
- <%= link_to "#{c.card_number} #{c.name}", card_url(c) %>
<% end %>
<%= f.submit %>
<% end %>