<%%= alert %>
Change your password
<%%= form_with(model: @<%= model_resource_name %>, url: password_path) do |form| %>
<%% if @<%= singular_table_name %>.errors.any? %>
<%%= pluralize(@<%= singular_table_name %>.errors.count, "error") %> prohibited this <%= singular_table_name %> from being saved:
<%% @<%= singular_table_name %>.errors.each do |error| %>
- <%%= error.full_message %>
<%% end %>
<%% end %>
<%%= label_tag :current_password, nil, style: "display: block" %>
<%%= password_field_tag :current_password, nil, autofocus: true, autocomplete: "current-password" %>
<%%= form.label :password, "New password", style: "display: block" %>
<%%= form.password_field :password, autocomplete: "new-password" %>
8 characters minimum.
<%%= form.label :password_confirmation, "Confirm new password", style: "display: block" %>
<%%= form.password_field :password_confirmation, autocomplete: "new-password" %>
<%%= form.submit "Save changes" %>
<%% end %>
<%%= link_to "Back", root_path %>