Edit Profile

<%= form_for @user, url: sufia.profile_path(@user.to_param), html: {multipart: true, class: 'form-horizontal' } do |f| %>
<%= f.label :avatar, ' Change picture'.html_safe, class: "col-xs-4 control-label" %>
<%= image_tag @user.avatar.url(:thumb) if @user.avatar? %> <%= f.file_field :avatar %> <%= f.hidden_field :avatar_cache %> JPG, GIF, or PNG (less than 2MB)
<%= f.label :remove_avatar do %> <%= f.check_box :remove_avatar %> Delete picture <% end %>
<%= f.label :update_directory do %> <%= f.check_box :update_directory %> Refresh directory info <% end %>
<%= f.label :twitter_handle, ' Twitter Handle'.html_safe, class: 'col-xs-4 control-label' %>
<%= f.text_field :twitter_handle, class: "form-control" %>
<%= f.label :facebook_handle, ' Facebook Handle'.html_safe, class: 'col-xs-4 control-label' %>
<%= f.text_field :facebook_handle, class: "form-control" %>
<%= f.label :googleplus_handle, ' Google+ Handle'.html_safe, class: 'col-xs-4 control-label' %>
<%= f.text_field :googleplus_handle, class: "form-control" %>
<%= render partial: 'trophy_edit', locals: {trophies: @trophies} %> <%= f.button ' Save Profile'.html_safe, type: 'submit', class: "btn btn-primary" %> <% end %>
<%= render partial: 'dashboard/_index_partials/proxy_rights' %>

Directory Info (LDAP) <%= link_to 'Edit Instructions', 'http://www.psu.edu/directory/#update', class: 'btn btn-mini btn-primary' %>

<%= render partial: 'user_info', locals: {user: @user} %>

User Managed Groups Info (UMG) <%= link_to 'Manage UMG', 'http://umg.its.psu.edu/', class: 'btn btn-xs btn-primary' %>

<% current_user.groups.each do |g| %> <%= g %>
<% end %>