<%= form_for(resource, as: resource_name, url: registration_path(resource_name), html: { method: :put }) do |f| %>

<%= t('common.forms.auth.profile_settings') %>

<%= render "devise/shared/error_messages", resource: resource %>
<%= f.label t('common.forms.auth.full_name') %> <%= f.text_field :full_name, autocomplete: "full-name", class: "form-control" %>
<%= f.label t('common.forms.auth.email') %> <%= f.email_field :email, autocomplete: "email", class: "form-control" %>
<%= f.label t('common.forms.auth.notifications_enabled') %>  <%= f.check_box :notifications_enabled, style: "transform: scale(1.5)" %> <%= t('common.forms.auth.notifications_enabled_help') %>
<% if devise_mapping.confirmable? && resource.pending_reconfirmation? %>
Currently waiting confirmation for: <%= resource.unconfirmed_email %>
<% end %>
<%= f.label t('common.forms.auth.password') %> <%= f.password_field :password, autocomplete: "new-password", class: "form-control" %> leave blank if you don't want to change your password
<%= f.label t('common.forms.auth.password_confirmation') %> <%= f.password_field :password_confirmation, autocomplete: "new-password", class: "form-control" %>
<%= f.label t('common.forms.auth.current_password') %> <%= f.password_field :current_password, autocomplete: "current-password", class: "form-control" %> we need your current password to confirm your changes
<%= f.submit t('common.forms.auth.update_profile'), class: "btn btn-dark btn-block" %>
<% end %>

<%= t('common.forms.auth.cancel_account') %>

<%= button_to t('common.forms.auth.cancel_account'), registration_path(resource_name), data: { confirm: "Are you sure?" }, method: :delete, class: "btn btn-danger btn-block" %>