<% # Copyright (C) 2018 Colin Darie , 2018 Jeremy Lecour , 2018 Evolix %> <% # License: GNU AGPL-3+ (see full text in LICENSE file) %> <%= devise_form_container do %>

<%= t('.title', resource: resource_name.to_s.humanize) %>

<%= simple_form_for(resource, as: resource_name, url: registration_path(resource_name), html: { method: :put }) do |f| %> <%= f.input :email, autofocus: true, autocomplete: "email" %> <% if devise_mapping.confirmable? && resource.pending_reconfirmation? %>
<%= t('.currently_waiting_confirmation_for_email', email: resource.unconfirmed_email) %>
<% end %> <%= f.input :current_password, autocomplete: "off", hint: t('.we_need_your_current_password_to_confirm_your_changes') %>

<%= t('.change_password_title') %>

<%= f.input :password, autocomplete: "off", hint: (t('devise.shared.minimum_password_length', count: @minimum_password_length) + " " + t('.leave_blank_if_you_don_t_want_to_change_it'))%> <%= f.input :password_confirmation, autocomplete: "off" %>
<%= f.input :locale, label: t('.locale'), collection: available_locales_collection, selected: resource.locale %> <%= f.input :notifications_enabled %> <%= f.button :submit, t('.update'), class: "btn-primary" %> <% end %>

<%= t('.cancel_my_account') %>

<%= t('.unhappy') %> <%= button_to t('.cancel_my_account'), registration_path(resource_name), class: "btn btn-danger", data: { confirm: t('.are_you_sure') }, method: :delete %>

<%= link_to t('devise.shared.links.back'), :back %> <% end %>