Change <%= current_user.manager? ? User.find(params[:id]).name + "'s" : 'Your' %> Password <%= f.input :password, label: "New password", input_html: { autocomplete: "off" } %> <%= f.input :password_confirmation, label: "Repeat the new password", input_html: { autocomplete: "off" } %>
<% unless current_user.manager? %>
Authorize Your Changes

Enter your current password to confirm your changes

<%= f.input :current_password, required: true %>
<% end %>