%# (C) COPYRIGHT HELP/SYSTEMS, L.L.C. 2009 %> <% button_id = "button_close_#{@user.id}" form_id = @user.new_record? ? "new_user" : "edit_user_#{@user.id}" @admin_view_only = @user.admin_user ? true : false @title_section = t('.dialog_title') @title_section = @title_section + ' ' + t('common.view_only_mode') if @view_only @title_item = h @user.name @help_link_anchor = HELP_URL_CONFIG['admin']['users']['user_settings'] if @user.is_ldap_user? @ldap_shipped_admin_view = @user.is_shipped_admin? ? true : false else @ldap_shipped_admin_view = true end %> <% form_for(@user, :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 => "user-general", :section_title => t('common.general_title')}) do %>
<%= t_label('common.name') %>
<%= h @user.name %>
<%= t_label('common.description') %>
<%= h @user.description %>
<%= t_label('users.edit_general.notify_system_events') %>
<%= @user.notify_of_system_events? ? t('common.key_yes') : t('common.key_no') %>
<%= t_label('users.edit_details.username_label') %>
<%= h @user.username %>
<%= t_label('users.edit_details.email_address_label') %>
<%= h @user.email_address %>
<%= t_label('users.edit_details.update_email_ldap_label') %>
<%= h @user.update_email_ldap? ? t('common.key_yes') : t('common.key_no') %>
<%= t_label('users.profile.language') %>
<%= h @user.locale %>
<%= t_label('users.edit_details.role_label') %>
<%= h @user.role.name unless @user.role.nil? %>
<%= t_label('users.edit_details.enabled_label') %>
<%= @user.enabled? ? t('common.key_yes') : t('common.key_no') %>
<%= t_label('users.edit_details.password_expired') %>
<%= @user.password_expired? ? t('common.key_yes') : t('common.key_no') %>
<%= 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 %>