<%# (C) COPYRIGHT HELP/SYSTEMS, L.L.C. 2010 %> <% button_id = "button_close_#{@user.id}" form_id = "profile_#{@user.id}" @title_section = t('users.profile.dialog_title') @title_item = h @user.name @help_link_anchor = HELP_URL_CONFIG['product_info']['profile_settings'] %> <% form_for(@user, :url => profile_update_user_path(@user.id), :html => { :id => form_id, :class => "edit_user", :autocomplete => "off", :onsubmit => "try {helpsys.CntMgr.getController('#{form_id}').submitForm();} catch(e) {console.log(e);};return false;"}) do |form| %> <% render( :layout => 'shared/edit_section', :locals => { :section_id => "profile-language", :section_title => t('users.profile.preferences')}) do %>

<%= t_label('users.profile.language') %>

<%= h @user.locale %>

<%= t_label('users.profile.show_year') %>

<%= @user.show_year? ? t('common.key_yes') : t('common.key_no') %>

<% end %> <% if @current_user.is_shipped_admin? or !@current_user.is_ldap_user? render( :layout => 'shared/edit_section', :locals => { :section_id => "profile-password", :section_title => t('users.profile.password')}) do %>

<%=t('users.profile.password_summary')%>

<% end end %> <% render( :layout => 'shared/edit_section', :locals => { :summary_only => true, :section_id => "profile-summary", :section_title => t('users.profile.summary')}) do %>

<%= t_label('users.edit_details.last_login_label') %>

<%= format_timestamp @user.current_login_at %>

<% if @current_user.is_shipped_admin? or !@current_user.is_ldap_user?%>

<%= t_label('users.edit_details.password_changed_label') %>

<%= format_timestamp @user.password_last_changed_at %>

<%end%>

<%= t_label('users.edit_details.role_label') %>

<%= h @user.role.name unless @user.role.nil? %>

<% end %>
<%= standard_buttons(button_id) %>
<% end %>