- @title = "Edit #{resource_name.to_s.humanize}" #main.devise-1 .container-fluid .row %header.text-center %h1= app_name %p.p-0.m-0.text-uppercase My Account Details .row.m-5 .col-12.col-md-8.mr-auto.ml-auto .card .card-body .container = form_for resource, as: resource_name, url: registration_path(resource_name), | html: { method: :put, novalidate: true, class: "form-horizontal" } do |f| | = f.error_notification = f.form_group :email, class:"row" do |f| = f.label :email, class: "col-sm-4 col-form-label" .col-md-8 = f.email_field :email, required: true, autofocus: true, class: "form-control" = f.error_messages = f.form_group :password, class: "row" do |f| = f.label :password, class: "col-sm-4 col-form-label" .col-md-8 = f.password_field :password, class: "form-control" = f.error_messages .help-block Leave it blank if you don"t want to change it. = f.form_group :password_confirmation, class: "row" do |f| = f.label :password_confirmation, class: "col-sm-4 col-form-label" .col-md-8 = f.password_field :password_confirmation, class: "form-control" = f.error_messages = f.form_group :current_password, class: "row" do |f| = f.label :current_password, class: "col-sm-4 col-form-label" .col-md-8 = f.password_field :current_password, class: "form-control" = f.error_messages .help-block We need your current password to confirm your changes. .row.d-flex.align-items-center.mt-5 = link_to "Cancel my account", registration_path(resource_name), confirm: "Are you sure?", method: :delete, class: "mr-auto text-danger" %div = link_to "Back", :back, class: "btn btn-outline-defualt" = f.submit "Update", class: "btn btn-primary"