2013-01-25 14:11:22 +00:00
|
|
|
<% 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| %>
|
2012-10-14 13:23:35 +00:00
|
|
|
<% if @user.errors.any? %>
|
|
|
|
<div id="error_explanation">
|
|
|
|
<h2><%= pluralize(@user.errors.count, "error") %> prohibited this user from being saved:</h2>
|
|
|
|
|
|
|
|
<ul>
|
|
|
|
<% @user.errors.full_messages.each do |msg| %>
|
|
|
|
<li><%= msg %></li>
|
|
|
|
<% end %>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
<div class="field">
|
2013-02-01 11:44:05 +00:00
|
|
|
<%= f.label :name, "Full Name" %><br />
|
2012-10-14 13:23:35 +00:00
|
|
|
<%= f.text_field :name %>
|
|
|
|
</div>
|
|
|
|
<div class="field">
|
|
|
|
<%= f.label :email %><br />
|
|
|
|
<%= f.email_field :email %>
|
2013-08-29 08:23:21 +00:00
|
|
|
<%= f.check_box :email_visible %>
|
|
|
|
<%= f.label :email_visible, "Show Email to All Members?" %>
|
2012-10-14 13:23:35 +00:00
|
|
|
</div>
|
2013-01-25 15:45:43 +00:00
|
|
|
<% if @user.id.blank? || !params[:password].nil? %>
|
|
|
|
<div class="field">
|
|
|
|
<%= f.label :password %><br />
|
|
|
|
<%= f.password_field :password, :autocomplete => "off" %>
|
|
|
|
</div>
|
|
|
|
<div class="field">
|
|
|
|
<%= f.label :password_confirmation %><br />
|
|
|
|
<%= f.password_field :password_confirmation %>
|
|
|
|
</div>
|
|
|
|
<% else %>
|
|
|
|
<div class="field">
|
|
|
|
<a href="?password=edit">Change Password</a>
|
|
|
|
</div>
|
|
|
|
<% end %>
|
2013-08-29 08:23:21 +00:00
|
|
|
<div class="field">
|
|
|
|
<%= f.label :phone %><br />
|
|
|
|
<%= f.text_field :phone %>
|
|
|
|
<%= f.check_box :phone_visible %>
|
|
|
|
<%= f.label :phone_visible, "Show Phone to All Members?" %>
|
|
|
|
</div>
|
2014-02-09 04:06:07 +00:00
|
|
|
<div class="field">
|
|
|
|
<%= f.label :postal_code, "Residential Postal Code" %><br />
|
|
|
|
<%= f.text_field :postal_code %> (we'd like to know where you're commuting from!)
|
|
|
|
</div>
|
2013-08-29 08:23:21 +00:00
|
|
|
<div class="field">
|
|
|
|
<%= f.label :twitter_url %>
|
|
|
|
<%= f.text_field :twitter_url, :placeholder => "https://twitter.com/heatsynclabs" %><br/>
|
|
|
|
<%= f.label :facebook_url %>
|
|
|
|
<%= f.text_field :facebook_url, :placeholder => "https://www.facebook.com/HeatSyncLabs" %><br/>
|
|
|
|
<%= f.label :github_url %>
|
|
|
|
<%= f.text_field :github_url, :placeholder => "https://github.com/heatsynclabs" %><br/>
|
|
|
|
<%= f.label :website_url %>
|
|
|
|
<%= f.text_field :website_url, :placeholder => "http://www.heatsynclabs.org" %>
|
|
|
|
</div>
|
2013-01-11 06:11:41 +00:00
|
|
|
<div class="field">
|
|
|
|
<%= f.label :waiver %><br />
|
2013-01-25 08:49:32 +00:00
|
|
|
<%= f.date_select :waiver, :include_blank => 'true', :default => 'nil' %>
|
2013-01-11 06:11:41 +00:00
|
|
|
</div>
|
|
|
|
<div class="field">
|
|
|
|
<%= f.label :orientation %><br />
|
2013-01-25 08:49:32 +00:00
|
|
|
<%= f.date_select :orientation, :include_blank => 'true', :default => 'nil' %>
|
2013-01-11 06:11:41 +00:00
|
|
|
</div>
|
|
|
|
<div class="field">
|
|
|
|
<%= f.label :emergency_name %><br />
|
|
|
|
<%= f.text_field :emergency_name %>
|
|
|
|
</div>
|
|
|
|
<div class="field">
|
|
|
|
<%= f.label :emergency_phone %><br />
|
|
|
|
<%= f.text_field :emergency_phone %>
|
|
|
|
</div>
|
|
|
|
<div class="field">
|
|
|
|
<%= f.label :emergency_email %><br />
|
|
|
|
<%= f.text_field :emergency_email %>
|
|
|
|
</div>
|
|
|
|
<div class="field">
|
2013-01-25 14:23:06 +00:00
|
|
|
<%= f.label :member_level, "Desired Member Level" %><br />
|
2013-02-01 11:44:05 +00:00
|
|
|
<%= f.select :member_level, [[nil],["None",0],["Unable",1],["Volunteer",10],["Associate ($25)",25],["Basic ($50)",50],["Plus ($100)",100]] %>
|
2013-01-11 06:11:41 +00:00
|
|
|
</div>
|
|
|
|
<div class="field">
|
2013-01-26 05:30:05 +00:00
|
|
|
<%= render :partial => "/users/payment_methods", :locals => { :g => f } %>
|
2013-01-11 06:11:41 +00:00
|
|
|
</div>
|
2013-02-12 08:58:17 +00:00
|
|
|
<div class="field">
|
|
|
|
<%= f.label :payee %><br />
|
|
|
|
<%= f.text_field :payee%>
|
|
|
|
</div>
|
2013-01-11 06:11:41 +00:00
|
|
|
<div class="field">
|
2013-02-01 11:44:05 +00:00
|
|
|
<%= f.label :current_skills, "What skills, knowledge and experience do you bring to the community?" %><br />
|
2013-01-11 06:11:41 +00:00
|
|
|
<%= f.text_area :current_skills %>
|
|
|
|
</div>
|
|
|
|
<div class="field">
|
2013-02-01 11:44:05 +00:00
|
|
|
<%= f.label :desired_skills, "What skills, knowledge and experiences are you looking for in HeatSync?" %><br />
|
2013-01-11 06:11:41 +00:00
|
|
|
<%= f.text_area :desired_skills %>
|
|
|
|
</div>
|
2013-02-09 10:47:07 +00:00
|
|
|
<div class="field">
|
|
|
|
<%= f.label :marketing_source, "How'd you find out about HeatSync?" %><br />
|
|
|
|
<%= f.text_area :marketing_source %>
|
|
|
|
</div>
|
2013-08-29 08:23:21 +00:00
|
|
|
<div class="field">
|
|
|
|
<%= f.label :exit_reason, "Reason for Leaving" %><br />
|
|
|
|
<%= f.text_area :exit_reason %>
|
|
|
|
</div>
|
2013-01-25 13:01:02 +00:00
|
|
|
<div class="field">
|
|
|
|
<%= f.label :instructor, "Instructor?" %><br />
|
|
|
|
<%= f.check_box :instructor %>
|
2012-10-17 05:59:35 +00:00
|
|
|
</div>
|
2012-10-14 13:23:35 +00:00
|
|
|
<div class="field">
|
|
|
|
<%= f.label :admin, "Admin?" %><br />
|
|
|
|
<%= f.check_box :admin %>
|
|
|
|
</div>
|
2013-02-12 08:58:17 +00:00
|
|
|
<div class="field">
|
|
|
|
<%= f.label :accountant, "Accountant?" %><br />
|
|
|
|
<%= f.check_box :accountant %>
|
|
|
|
</div>
|
2013-01-25 20:47:44 +00:00
|
|
|
<div class="field">
|
|
|
|
<%= f.label :hidden, "Hidden?" %><br />
|
|
|
|
<%= f.check_box :hidden %>
|
|
|
|
</div>
|
2012-10-14 13:23:35 +00:00
|
|
|
<div class="field">
|
|
|
|
<h3>Cards</h3>
|
|
|
|
<ul>
|
|
|
|
<% @user.cards.each do |c| %>
|
|
|
|
<li><%= link_to "#{c.card_number} #{c.name}", card_url(c) %></li>
|
|
|
|
<% end %>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
<div class="actions">
|
|
|
|
<%= f.submit %>
|
|
|
|
</div>
|
|
|
|
<% end %>
|