Sha256: ad7c9b2442b25f29056a388c4f132fbba8cdb3907e6b5e40207a960c8f98e2c8

Contents?: true

Size: 1.04 KB

Versions: 15

Compression:

Stored size: 1.04 KB

Contents

<h1>Reset your password</h1>

<%%= form_with(model: @<%= model_resource_name %>, url: password_resets_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 %>

  <%%= hidden_field_tag :token, params[:token] %>

  <div>
    <%%= form.label :password, "New password", style: "display: block" %>
    <%%= form.password_field :password, autofocus: true, autocomplete: "new-password" %>
    <div>8 characters minimum.</div>
  </div>

  <div>
    <%%= form.label :password_confirmation, "Confirm new password", style: "display: block" %>
    <%%= form.password_field :password_confirmation, autocomplete: "new-password" %>
  </div>

  <div>
    <%%= form.submit "Save changes" %>
  </div>
<%% end %>

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
authentication-zero-2.1.0 lib/generators/authentication/templates/erb/password_resets/edit.html.erb.tt
authentication-zero-2.0.0 lib/generators/authentication/templates/erb/password_resets/edit.html.erb.tt
authentication-zero-1.0.2 lib/generators/authentication/templates/erb/password_resets/edit.html.erb.tt
authentication-zero-1.0.1 lib/generators/authentication/templates/erb/password_resets/edit.html.erb.tt
authentication-zero-1.0.0 lib/generators/authentication/templates/erb/password_resets/edit.html.erb.tt
authentication-zero-0.0.24 lib/generators/authentication/templates/erb/password_resets/edit.html.erb.tt
authentication-zero-0.0.23 lib/generators/authentication/templates/app/views/password_resets/edit.html.erb.tt
authentication-zero-0.0.22 lib/generators/authentication/templates/views/password_resets/edit.html.erb.tt
authentication-zero-0.0.21 lib/generators/authentication/templates/views/password_resets/edit.html.erb.tt
authentication-zero-0.0.20 lib/generators/authentication/templates/views/password_resets/edit.html.erb.tt
authentication-zero-0.0.19 lib/generators/authentication/templates/views/password_resets/edit.html.erb.tt
authentication-zero-0.0.18 lib/generators/authentication/templates/views/password_resets/edit.html.erb.tt
authentication-zero-0.0.17 lib/generators/authentication/templates/views/password_resets/edit.html.erb.tt
authentication-zero-0.0.16 lib/generators/authentication/templates/views/password_resets/edit.html.erb.tt
authentication-zero-0.0.15 lib/generators/authentication/templates/views/password_resets/edit.html.erb.tt