Sha256: 05bbd0fbdf70893189e7a10d4acd8c7dd1380e228bc4fc2b62dc03229671bb1c

Contents?: true

Size: 1.02 KB

Versions: 4

Compression:

Stored size: 1.02 KB

Contents

<h1>Sign up</h1>

<%%= form_with(url: sign_up_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>
    <%%= form.label :email, style: "display: block" %>
    <%%= form.email_field :email, autofocus: true, autocomplete: "email" %>
  </div>

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

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

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
authentication-zero-2.9.1 lib/generators/authentication/templates/erb/registrations/new.html.erb.tt
authentication-zero-2.9.0 lib/generators/authentication/templates/erb/registrations/new.html.erb.tt
authentication-zero-2.8.4 lib/generators/authentication/templates/erb/registrations/new.html.erb.tt
authentication-zero-2.8.3 lib/generators/authentication/templates/erb/registrations/new.html.erb.tt