Sha256: f89a7d6effdb9033f9239b4c293aefc474870589bf322531abb1d5b204a968d9

Contents?: true

Size: 1002 Bytes

Versions: 2

Compression:

Stored size: 1002 Bytes

Contents

<h1>Sign up</h1>

<%%= form_with(url: sign_up_path) do |form| %>
  <%% if @user.errors.any? %>
    <div style="color: red">
      <h2><%%= pluralize(@user.errors.count, "error") %> prohibited this user from being saved:</h2>

      <ul>
        <%% @user.errors.each do |error| %>
          <li><%%= error.full_message %></li>
        <%% end %>
      </ul>
    </div>
  <%% end %>

  <div>
    <%%= form.label :email, style: "display: block" %>
    <%%= form.email_field :email, required: true, autofocus: true, autocomplete: "email" %>
  </div>

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

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

  <div>
    <%%= form.submit "Sign up" %>
  </div>
<%% end %>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
authentication-zero-2.16.7 lib/generators/authentication/templates/erb/registrations/new.html.erb.tt
authentication-zero-2.16.6 lib/generators/authentication/templates/erb/registrations/new.html.erb.tt