Sha256: ff5b66d68922fdb1533da5f905a6882fd53525bf1b364150119694c3ccade0d4

Contents?: true

Size: 1.11 KB

Versions: 3

Compression:

Stored size: 1.11 KB

Contents

<h1>Sign up</h1>

<%%= form_with(model: @<%= model_resource_name %>, 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, "Password (6 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 "Sign up" %>
  </div>
<%% end %>

<br>

<div>
  <%%= link_to "Sign in", sign_in_path %>
</div>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
authentication-zero-0.0.3 lib/generators/authentication/templates/views/html/registrations/new.html.erb.tt
authentication-zero-0.0.2 lib/generators/authentication/templates/views/html/registrations/new.html.erb.tt
authentication-zero-0.0.1 lib/generators/authentication/templates/views/html/registrations/new.html.erb.tt