Sha256: 4f7c4fcc884749ec45278e975f1f6922f35226821eadb39baf98188f62ed8e21

Contents?: true

Size: 1022 Bytes

Versions: 15

Compression:

Stored size: 1022 Bytes

Contents

<p style="color: red"><%%= alert %></p>

<%% if Current.user.verified? %>
  <h1>Change your email</h1>
<%% else %>
  <h1>Verify your email</h1>
  <p>We sent a verification email to the address below. Check that email and follow those instructions to confirm it's your email address.</p>
  <p><%%= button_to "Re-send verification email", identity_email_verification_path %></p>
<%% end %>

<%%= form_with(url: identity_email_path, method: :patch) 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, "New email", style: "display: block" %>
    <%%= form.email_field :email %>
  </div>

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

<br>

<div>
  <%%= link_to "Back", root_path %>
</div>

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
authentication-zero-2.16.5 lib/generators/authentication/templates/erb/identity/emails/edit.html.erb.tt
authentication-zero-2.16.4 lib/generators/authentication/templates/erb/identity/emails/edit.html.erb.tt
authentication-zero-2.16.3 lib/generators/authentication/templates/erb/identity/emails/edit.html.erb.tt
authentication-zero-2.16.2 lib/generators/authentication/templates/erb/identity/emails/edit.html.erb.tt
authentication-zero-2.16.1 lib/generators/authentication/templates/erb/identity/emails/edit.html.erb.tt
authentication-zero-2.16.0 lib/generators/authentication/templates/erb/identity/emails/edit.html.erb.tt
authentication-zero-2.15.9 lib/generators/authentication/templates/erb/identity/emails/edit.html.erb.tt
authentication-zero-2.15.8 lib/generators/authentication/templates/erb/identity/emails/edit.html.erb.tt
authentication-zero-2.15.7 lib/generators/authentication/templates/erb/identity/emails/edit.html.erb.tt
authentication-zero-2.15.6 lib/generators/authentication/templates/erb/identity/emails/edit.html.erb.tt
authentication-zero-2.15.5 lib/generators/authentication/templates/erb/identity/emails/edit.html.erb.tt
authentication-zero-2.15.4 lib/generators/authentication/templates/erb/identity/emails/edit.html.erb.tt
authentication-zero-2.15.3 lib/generators/authentication/templates/erb/identity/emails/edit.html.erb.tt
authentication-zero-2.15.2 lib/generators/authentication/templates/erb/identity/emails/edit.html.erb.tt
authentication-zero-2.15.1 lib/generators/authentication/templates/erb/identity/emails/edit.html.erb.tt