Sha256: 8c6be508d8de2df0ac4426edeff6eeaadf055feb29e45519503b001e3e4598e5
Contents?: true
Size: 1.21 KB
Versions: 5
Compression:
Stored size: 1.21 KB
Contents
<p style="color: red"><%%= alert %></p> <h1>Change your password</h1> <%%= form_with(model: @<%= model_resource_name %>, url: password_path) do |form| %> <%% if @<%= singular_table_name %>.errors.any? %> <div style="color: red"> <h2><%%= pluralize(@<%= singular_table_name %>.errors.count, "error") %> prohibited this <%= singular_table_name %> from being saved:</h2> <ul> <%% @<%= singular_table_name %>.errors.each do |error| %> <li><%%= error.full_message %></li> <%% end %> </ul> </div> <%% end %> <div> <%%= label_tag :current_password, nil, style: "display: block" %> <%%= password_field_tag :current_password, nil, autofocus: true, autocomplete: "current-password" %> </div> <div> <%%= form.label :password, "New password (8 characters minimum)", style: "display: block" %> <%%= form.password_field :password, autocomplete: "new-password" %> </div> <div> <%%= form.label :password_confirmation, style: "display: block" %> <%%= form.password_field :password_confirmation, autocomplete: "new-password" %> </div> <div> <%%= form.submit "Save changes" %> </div> <%% end %> <br> <div> <%%= link_to "Back", root_path %> </div>
Version data entries
5 entries across 5 versions & 1 rubygems