Sha256: f61cba219efc4042236974838cc4f8a026dfa7c3c1f225ff5c23b9da70e7f254
Contents?: true
Size: 1.54 KB
Versions: 2
Compression:
Stored size: 1.54 KB
Contents
<h2>Edit <%= resource_name.to_s.humanize %></h2> <%= form_for(resource, as: resource_name, url: registration_path(resource_name), html: { method: :put }) do |f| %> <%= render "kingsman/shared/error_messages", resource: resource %> <div class="field"> <p><%= f.label :email %></p> <p><%= f.email_field :email, autofocus: true, autocomplete: "email" %></p> </div> <% if kingsman_mapping.confirmable? && resource.pending_reconfirmation? %> <div>Currently waiting confirmation for: <%= resource.unconfirmed_email %></div> <% end %> <div class="field"> <p><%= f.label :password %> <i>(leave blank if you don't want to change it)</i></p> <p><%= f.password_field :password, autocomplete: "new-password" %></p> <% if @minimum_password_length %> <p><em><%= @minimum_password_length %> characters minimum</em></p> <% end %> </div> <div class="field"> <p><%= f.label :password_confirmation %></p> <p><%= f.password_field :password_confirmation, autocomplete: "new-password" %></p> </div> <div class="field"> <p><%= f.label :current_password %> <i>(we need your current password to confirm your changes)</i></p> <p><%= f.password_field :current_password, autocomplete: "current-password" %></p> </div> <div class="actions"> <%= f.submit "Update" %> </div> <% end %> <h3>Cancel my account</h3> <div>Unhappy? <%= button_to "Cancel my account", registration_path(resource_name), data: { confirm: "Are you sure?", turbo_confirm: "Are you sure?" }, method: :delete %></div> <%= link_to "Back", :back %>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
kingsman-0.1.1 | app/views/kingsman/registrations/edit.html.erb |
kingsman-0.1.0 | app/views/kingsman/registrations/edit.html.erb |