Sha256: 456d674dfae1adfbf274c2f18c4cdd1f7ed4547aeed46a8e08ac5368fcfd397f

Contents?: true

Size: 1.3 KB

Versions: 8

Compression:

Stored size: 1.3 KB

Contents

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

<%% if Current.<%= singular_table_name %>.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", email_verification_path %></p>
<%% end %>

<%%= form_with(model: @<%= model_resource_name %>, url: email_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>
    <%%= label_tag :current_password, nil, style: "display: block" %>
    <%%= password_field_tag :current_password, nil, autofocus: true, autocomplete: "current-password" %>
  </div>

  <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

8 entries across 8 versions & 1 rubygems

Version Path
authentication-zero-2.2.10 lib/generators/authentication/templates/erb/emails/edit.html.erb.tt
authentication-zero-2.2.9 lib/generators/authentication/templates/erb/emails/edit.html.erb.tt
authentication-zero-2.2.8 lib/generators/authentication/templates/erb/emails/edit.html.erb.tt
authentication-zero-2.2.7 lib/generators/authentication/templates/erb/emails/edit.html.erb.tt
authentication-zero-2.2.6 lib/generators/authentication/templates/erb/emails/edit.html.erb.tt
authentication-zero-2.2.5 lib/generators/authentication/templates/erb/emails/edit.html.erb.tt
authentication-zero-2.2.4 lib/generators/authentication/templates/erb/emails/edit.html.erb.tt
authentication-zero-2.2.3 lib/generators/authentication/templates/erb/emails/edit.html.erb.tt