<%# (C) COPYRIGHT HELP/SYSTEMS, L.L.C. 2009 %> <%= form.text_field :username, :dojoType => "helpsys.ext.TextBox", :fieldLabel => "#{t('.username_label')}", :maxLength => 40, :anchor => '90%', :disabled => @view_only || @admin_view_only, :value=> @user.username %> <%= form.text_field :email_address, :dojoType => "helpsys.ext.TextBox", :fieldLabel => "#{t('.email_address_label')}", :maxLength => 256, :anchor => '90%', :disabled => @view_only, :value=> @user.email_address %> <%= form.collection_select 'role_id', @roles, :id, :name, {}, {:dojoType => "helpsys.ext.ComboBox", :id => "userRole", :fieldlabel => "#{t('.role_label')}", :typeAhead => true, :forceSelection => false, :disabled => @view_only || @admin_view_only, :triggerAction => 'all'} %> <% unless current_user.username == @user.username %> <%= form.check_box :enabled, :fieldLabel => "#{t('.enabled_label')}", :dojoType => 'helpsys.ext.CheckBox', :disabled => @view_only %> <% end %> <% unless new_record %>
<% else %> <%= form.password_field :password, {:size => 20, :class => 'inputEdit', :dojoType => "helpsys.ext.TextBox", :fieldLabel => "#{t('.new_password_label')}", :maxLength => 40, :anchor => '90%'} %> <%= form.password_field :password_confirmation, {:size => 20, :class => 'inputEdit', :dojoType => "helpsys.ext.TextBox", :fieldLabel => "#{t('.confirm_new_password_label')}", :maxLength => 40, :anchor => '90%'} %> <% end %>