My Account Profile
<%= form_for([:admin, @user]) do |f| %>
<% if @user.errors.any? %>
<%= pluralize(@user.errors.count, "error") %> prohibited this program from being saved:
<% @user.errors.full_messages.each do |msg| %>
- <%= msg %>
<% end %>
<% end %>
- <%= link_to 'Change Password', edit_admin_user_path(@user) %>
- <%= f.label 'Name' %> <%= @user.name %>
- <%= f.label 'Email' %> <%= @user.email %>
<% Contact.find_all_by_user_id(@user.id).each do |c| %>
- <%= label_tag ContactType.find(c.contact_type_id).name %> <%= number_to_phone("#{c.area}#{c.number}", :groupings => [3,3,4], :delimiter => '-') %>
<% end %>
<% if !@user.address.nil? %>
- <%= label_tag 'Address' %>
<%= @user.address.address1 %> <%= @user.address.address2 %>
<%= @user.address.city %>, <%= @user.address.state %> <%= @user.address.zipcode %>
<% end %>
- <%= f.label 'Blood Type' %> <%= @blood_type %>
Enable Facebook Login
<% end %>
<% if !@all_comps.blank? %>
Print Last: <%= select("composition", "id",
(1..10),
{},
{:onchange=>"document.location.href='#{SUBDIRECTORY}build_comp_history.pdf?id=#{@user.id}&num='+this.value"}
) %>
<% end %>
<%= page_entries_info @comps %>
<%= will_paginate @comps %>
Historical Body Fat %