%# (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') %>
<%=t('users.profile.password_summary')%>
<%= t_label('users.edit_details.last_login_label') %>
<%= format_timestamp @user.current_login_at %>
<%= t_label('users.edit_details.password_changed_label') %>
<%= format_timestamp @user.password_last_changed_at %>
<%= t_label('users.edit_details.role_label') %>
<%= h @user.role.name unless @user.role.nil? %>