Sha256: ff70de7a4040ea776c39645711f08ed19441de84da9e46836427dbdaf8194a4a

Contents?: true

Size: 995 Bytes

Versions: 17

Compression:

Stored size: 995 Bytes

Contents

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

<h1>Change your email</h1>

<%%= form_with(model: @<%= model_resource_name %>, url: emails_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

17 entries across 17 versions & 1 rubygems

Version Path
authentication-zero-2.1.0 lib/generators/authentication/templates/erb/emails/edit.html.erb.tt
authentication-zero-2.0.0 lib/generators/authentication/templates/erb/emails/edit.html.erb.tt
authentication-zero-1.0.2 lib/generators/authentication/templates/erb/emails/edit.html.erb.tt
authentication-zero-1.0.1 lib/generators/authentication/templates/erb/emails/edit.html.erb.tt
authentication-zero-1.0.0 lib/generators/authentication/templates/erb/emails/edit.html.erb.tt
authentication-zero-0.0.24 lib/generators/authentication/templates/erb/emails/edit.html.erb.tt
authentication-zero-0.0.23 lib/generators/authentication/templates/app/views/emails/edit.html.erb.tt
authentication-zero-0.0.22 lib/generators/authentication/templates/views/emails/edit.html.erb.tt
authentication-zero-0.0.21 lib/generators/authentication/templates/views/emails/edit.html.erb.tt
authentication-zero-0.0.20 lib/generators/authentication/templates/views/emails/edit.html.erb.tt
authentication-zero-0.0.19 lib/generators/authentication/templates/views/emails/edit.html.erb.tt
authentication-zero-0.0.18 lib/generators/authentication/templates/views/emails/edit.html.erb.tt
authentication-zero-0.0.17 lib/generators/authentication/templates/views/emails/edit.html.erb.tt
authentication-zero-0.0.16 lib/generators/authentication/templates/views/emails/edit.html.erb.tt
authentication-zero-0.0.15 lib/generators/authentication/templates/views/emails/edit.html.erb.tt
authentication-zero-0.0.14 lib/generators/authentication/templates/views/emails/edit.html.erb.tt
authentication-zero-0.0.13 lib/generators/authentication/templates/views/emails/edit.html.erb.tt