Sha256: 0ad4bd9a1cd9a26e2247def37d1742671c3a55125d1f41b986bcc9c1b6b3278d
Contents?: true
Size: 1.28 KB
Versions: 2
Compression:
Stored size: 1.28 KB
Contents
<p style="color: red"><%%= alert %></p> <h1>Change your password</h1> <%%= form_with(url: password_path, method: :patch) 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, required: true, autofocus: true, autocomplete: "current-password" %> </div> <div> <%%= form.label :password, "New password", style: "display: block" %> <%%= form.password_field :password, required: true, autocomplete: "new-password" %> <div>12 characters minimum.</div> </div> <div> <%%= form.label :password_confirmation, "Confirm new password", style: "display: block" %> <%%= form.password_field :password_confirmation, required: true, autocomplete: "new-password" %> </div> <div> <%%= form.submit "Save changes" %> </div> <%% end %> <br> <div> <%%= link_to "Back", root_path %> </div>
Version data entries
2 entries across 2 versions & 1 rubygems