<% if force_change || change_current_request || @user.id == current_user.id %>
<% end %>
<%= form.password_field :password, {:size => 20,
:dojoType => "helpsys.ext.TextBox", :allowBlank => false,
:fieldLabel => "#{t '.new_password_label'}", :anchor => '95%'} %>
<%= form.password_field :password_confirmation, {:size => 20,
:dojoType => "helpsys.ext.TextBox", :allowBlank => false,
:fieldLabel => "#{t '.confirm_new_password_label'}", :anchor => '95%'} %>
<% unless force_change || change_current_request || @user.id == current_user.id %>
<%= form.check_box :password_expired, { :dojoType => "helpsys.ext.CheckBox",
:fieldLabel => "#{t 'users.edit_details.password_expired'}", :anchor => '95%'} %>
<%= form.check_box :enabled, { :dojoType => "helpsys.ext.CheckBox",
:fieldLabel => "#{t 'common.Enabled'}", :anchor => '95%'} %>
<% end %>
<%= hidden_field :edit_password, @user.id %>
<%= hidden_field :force_change, force_change %>
<%= hidden_field :password_change, true %>
<%= hidden_field '', :id %>
<%= error_messages_for 'user' %>