<%# Copyright © 2012 The Pennsylvania State University Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. %> <% javascript 'bootstrap-tooltip.js'%> <% javascript 'bootstrap-popover.js'%> <% content_for :local_js do %> // initialize popover helpers $("a[rel=popover]").popover(); <% end %>

Edit Profile

<%= form_for @user, :url => update_profile_path(@user.login), :html => {:multipart => true, :class => 'form-horizontal' } do |f| %>
<%= f.label :avatar, ' Change picture'.html_safe, :class => "control-label" %>
<% if @user.avatar? %> <%= image_tag @user.avatar.url(:thumb) %> <% end %> <%= f.file_field :avatar %> JPG, GIF, or PNG (less than 2MB)
<%= f.label :delete_avatar, ' Delete picture'.html_safe, :class => 'control-label' %>
<%= f.label :update_directory, ' Refresh directory info'.html_safe, :class => 'control-label' %>
<%= f.label :twitter_handle, ' Twitter Handle'.html_safe, :class => 'control-label' %>
<%= f.text_field :twitter_handle, :class =>"input-medium" %>
<%= f.label :facebook_handle, ' Facebook Handle'.html_safe, :class => 'control-label' %>
<%= f.text_field :facebook_handle, :class =>"input-medium" %>
<%= f.label :googleplus_handle, ' Google+ Handle'.html_safe, :class => 'control-label' %>
<%= f.text_field :googleplus_handle, :class =>"input-medium" %>
<%= f.button ' Save Profile'.html_safe, :type => 'submit', :class => "btn-primary btn-large" %>
<% end %>

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-mini btn-primary' %>

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