% if @user.id.blank? then
this_url = users_create_path
else
this_url = user_path(@user)
end %>
<%= form_for @user, :url => this_url 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, "Full Name" %>
<%= f.text_field :name %>
<%= f.label :email %>
<%= f.email_field :email %>
<% 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 :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, "Desired Member Level" %>
<%= f.select :member_level, [[nil],["None",0],["Unable",1],["Volunteer",10],["Associate ($25)",25],["Basic ($50)",50],["Plus ($100)",100]] %>
<%= render :partial => "/users/payment_methods", :locals => { :g => f } %>
<%= f.label :payee %>
<%= f.text_field :payee%>
<%= f.label :phone %>
<%= f.text_field :phone %>
<%= f.label :current_skills, "What skills, knowledge and experience do you bring to the community?" %>
<%= f.text_area :current_skills %>
<%= f.label :desired_skills, "What skills, knowledge and experiences are you looking for in HeatSync?" %>
<%= f.text_area :desired_skills %>
<%= f.label :marketing_source, "How'd you find out about HeatSync?" %>
<%= f.text_area :marketing_source %>
<%= f.label :instructor, "Instructor?" %>
<%= f.check_box :instructor %>
<%= f.label :admin, "Admin?" %>
<%= f.check_box :admin %>
<%= f.label :accountant, "Accountant?" %>
<%= f.check_box :accountant %>
<%= f.label :hidden, "Hidden?" %>
<%= f.check_box :hidden %>
Cards
<% @user.cards.each do |c| %>
- <%= link_to "#{c.card_number} #{c.name}", card_url(c) %>
<% end %>
<%= f.submit %>
<% end %>