Sha256: 23323d69bacf2950de3449b6b757ce7e19b250861996aabe79601bd3e93180e7

Contents?: true

Size: 1.11 KB

Versions: 6

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 (8 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

6 entries across 6 versions & 1 rubygems

Version Path
authentication-zero-0.0.9 lib/generators/authentication/templates/views/registrations/new.html.erb.tt
authentication-zero-0.0.8 lib/generators/authentication/templates/views/registrations/new.html.erb.tt
authentication-zero-0.0.7 lib/generators/authentication/templates/views/registrations/new.html.erb.tt
authentication-zero-0.0.6 lib/generators/authentication/templates/views/html/registrations/new.html.erb.tt
authentication-zero-0.0.5 lib/generators/authentication/templates/views/html/registrations/new.html.erb.tt
authentication-zero-0.0.4 lib/generators/authentication/templates/views/html/registrations/new.html.erb.tt