2013-01-26 09:21:41 +00:00
|
|
|
<%= image_tag @user.gravatar_url(:default => "http://members.heatsynclabs.org/assets/nil.png") %>
|
2012-10-14 13:23:35 +00:00
|
|
|
|
|
|
|
<p>
|
|
|
|
<b>Name:</b>
|
|
|
|
<%= @user.name %>
|
|
|
|
</p>
|
|
|
|
|
|
|
|
<p>
|
2013-01-25 18:11:39 +00:00
|
|
|
<b>Waiver?</b>
|
|
|
|
<%= @user.waiver.strftime("%B %d %Y") unless @user.waiver.blank? %>
|
2012-10-14 13:23:35 +00:00
|
|
|
</p>
|
|
|
|
|
2012-10-17 05:59:35 +00:00
|
|
|
<p>
|
2013-01-25 18:11:39 +00:00
|
|
|
<b>Current Member?</b>
|
2013-02-12 08:58:17 +00:00
|
|
|
<%= raw(@user.member_status_symbol) %>
|
2013-01-25 13:01:02 +00:00
|
|
|
</p>
|
|
|
|
|
2013-01-25 18:11:39 +00:00
|
|
|
<p>
|
|
|
|
<b>Instructor?</b>
|
|
|
|
<%= @user.instructor? %>
|
|
|
|
</p>
|
|
|
|
|
2013-01-25 13:01:02 +00:00
|
|
|
<% if current_user.admin? then %>
|
2013-01-25 18:11:39 +00:00
|
|
|
<p>
|
|
|
|
<b>Email:</b>
|
|
|
|
<%= @user.email %>
|
|
|
|
</p>
|
|
|
|
|
2013-01-25 13:01:02 +00:00
|
|
|
<p>
|
|
|
|
<b>Orientation?</b>
|
2013-01-25 13:52:19 +00:00
|
|
|
<%= @user.orientation.strftime("%B %d %Y") unless @user.orientation.blank? %>
|
2013-01-25 13:01:02 +00:00
|
|
|
</p>
|
2013-01-25 14:23:06 +00:00
|
|
|
<p>
|
|
|
|
<b>Emergency Name:</b>
|
|
|
|
<%= @user.emergency_name %>
|
|
|
|
</p>
|
|
|
|
<p>
|
|
|
|
<b>Emergency Phone:</b>
|
|
|
|
<%= @user.emergency_phone %>
|
|
|
|
</p>
|
|
|
|
<p>
|
|
|
|
<b>Emergency Email:</b>
|
|
|
|
<%= @user.emergency_email %>
|
|
|
|
</p>
|
|
|
|
<p>
|
|
|
|
<b>Desired Member Level:</b>
|
|
|
|
<%= @user.member_level %>
|
|
|
|
</p>
|
|
|
|
<p>
|
|
|
|
<b>Payment Method:</b>
|
|
|
|
<%= @user.payment_method %>
|
|
|
|
</p>
|
2013-02-12 08:58:17 +00:00
|
|
|
<p>
|
|
|
|
<b>Payee:</b>
|
|
|
|
<%= @user.payee %>
|
|
|
|
</p>
|
2013-01-25 14:23:06 +00:00
|
|
|
<p>
|
|
|
|
<b>Phone:</b>
|
|
|
|
<%= @user.phone %>
|
|
|
|
</p>
|
2013-01-25 18:11:39 +00:00
|
|
|
<% end %>
|
2013-01-25 14:23:06 +00:00
|
|
|
<p>
|
|
|
|
<b>Current Skills:</b>
|
|
|
|
<%= simple_format @user.current_skills %>
|
|
|
|
</p>
|
|
|
|
<p>
|
|
|
|
<b>Desired Skills:</b>
|
|
|
|
<%= simple_format @user.desired_skills %>
|
|
|
|
</p>
|
2013-02-09 10:47:07 +00:00
|
|
|
<% if current_user.admin? then %>
|
|
|
|
<p>
|
|
|
|
<b>Found HeatSync via:</b>
|
|
|
|
<%= simple_format @user.marketing_source %>
|
|
|
|
</p>
|
|
|
|
<% end %>
|
2012-10-14 13:23:35 +00:00
|
|
|
<p>
|
2013-01-25 18:11:39 +00:00
|
|
|
<b>Card:</b>
|
|
|
|
<% if current_user.admin? then %>
|
|
|
|
<% @user.cards.each do |c| %>
|
|
|
|
<%= link_to c.card_number, c %><%= "," unless c == @user.cards.last %>
|
|
|
|
<% end %>
|
|
|
|
<% else %>
|
|
|
|
<%= unless @user.cards.blank? then raw("✓") end %>
|
2013-01-25 13:01:02 +00:00
|
|
|
<% end %>
|
|
|
|
</p>
|
|
|
|
|
2013-01-25 10:12:25 +00:00
|
|
|
<b>Certifications:</b>
|
|
|
|
<ul>
|
|
|
|
<% @user.certifications.each do |certification| %>
|
2013-01-25 10:50:53 +00:00
|
|
|
<li><%= link_to certification.name, certification %></li>
|
2013-01-25 10:12:25 +00:00
|
|
|
<% end %>
|
|
|
|
<% if @user.certifications.blank? %><li>n/a</li><% end %>
|
|
|
|
</ul>
|
|
|
|
|
2013-02-14 07:29:22 +00:00
|
|
|
<% if current_user.admin? then %>
|
|
|
|
<p>
|
|
|
|
<b>Payments:</b>
|
|
|
|
<ul>
|
|
|
|
<% @payments.each do |payment| %>
|
|
|
|
<li><%= payment.date %></li>
|
|
|
|
<% end %>
|
|
|
|
</ul>
|
|
|
|
</p>
|
|
|
|
<% end %>
|
|
|
|
|
2013-02-12 08:58:17 +00:00
|
|
|
<% if current_user.admin? then %>
|
|
|
|
<p>
|
|
|
|
<b>Created:</b>
|
|
|
|
<%= @user.created_at %>
|
|
|
|
</p>
|
2013-05-03 07:16:02 +00:00
|
|
|
<p>
|
|
|
|
<b>Last signed in:</b>
|
|
|
|
<%= @user.current_sign_in_at %>
|
|
|
|
</p>
|
2013-02-12 08:58:17 +00:00
|
|
|
<% end %>
|
|
|
|
|
2013-01-25 13:52:19 +00:00
|
|
|
<% if can? :update, @user then %><%= link_to 'Edit', edit_user_path(@user) %> |<% end %>
|
2012-10-14 13:23:35 +00:00
|
|
|
<%= link_to 'Back', users_path %>
|