2019-08-19 13:52:26 +02:00
|
|
|
<%= form_for(resource, as: resource_name, url: registration_path(resource_name), html: { method: :put }) do |f| %>
|
2022-06-05 11:40:43 +02:00
|
|
|
<h2><%= t('common.forms.auth.profile_settings') %></h2>
|
2019-09-19 18:30:29 +02:00
|
|
|
|
2019-08-19 13:52:26 +02:00
|
|
|
<%= render "devise/shared/error_messages", resource: resource %>
|
|
|
|
|
|
2019-08-19 15:45:44 +02:00
|
|
|
<div class="form-group">
|
2022-06-05 11:40:43 +02:00
|
|
|
<%= f.label t('common.forms.auth.full_name') %>
|
2019-11-25 23:07:20 +01:00
|
|
|
<%= f.text_field :full_name, autocomplete: "full-name", class: "form-control" %>
|
2019-08-19 15:45:44 +02:00
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="form-group">
|
2022-06-05 11:40:43 +02:00
|
|
|
<%= f.label t('common.forms.auth.email') %>
|
2019-08-19 15:45:44 +02:00
|
|
|
<%= f.email_field :email, autocomplete: "email", class: "form-control" %>
|
2019-08-19 13:52:26 +02:00
|
|
|
</div>
|
|
|
|
|
|
2021-01-26 23:42:36 +01:00
|
|
|
<div class="form-group">
|
2022-06-05 11:40:43 +02:00
|
|
|
<%= f.label t('common.forms.auth.notifications_enabled') %>
|
2022-04-07 18:58:18 +02:00
|
|
|
<%= f.check_box :notifications_enabled, style: "transform: scale(1.5)" %>
|
|
|
|
|
<small id="notificationsHelp" class="form-text text-muted">
|
2022-06-05 11:40:43 +02:00
|
|
|
<%= t('common.forms.auth.notifications_enabled_help') %>
|
2022-04-07 18:58:18 +02:00
|
|
|
</small>
|
2021-01-26 23:42:36 +01:00
|
|
|
</div>
|
|
|
|
|
|
2019-08-19 13:52:26 +02:00
|
|
|
<% if devise_mapping.confirmable? && resource.pending_reconfirmation? %>
|
|
|
|
|
<div>Currently waiting confirmation for: <%= resource.unconfirmed_email %></div>
|
|
|
|
|
<% end %>
|
|
|
|
|
|
2019-08-19 15:45:44 +02:00
|
|
|
<div class="form-group">
|
2022-06-05 11:40:43 +02:00
|
|
|
<%= f.label t('common.forms.auth.password') %>
|
2019-08-19 15:45:44 +02:00
|
|
|
<%= f.password_field :password, autocomplete: "new-password", class: "form-control" %>
|
2022-06-05 11:40:43 +02:00
|
|
|
<small id="passwordEditHelp" class="form-text text-muted">
|
|
|
|
|
leave blank if you don't want to change your password
|
|
|
|
|
</small>
|
2019-08-19 13:52:26 +02:00
|
|
|
</div>
|
|
|
|
|
|
2019-08-19 15:45:44 +02:00
|
|
|
<div class="form-group">
|
2022-06-05 11:40:43 +02:00
|
|
|
<%= f.label t('common.forms.auth.password_confirmation') %>
|
2019-08-19 15:45:44 +02:00
|
|
|
<%= f.password_field :password_confirmation, autocomplete: "new-password", class: "form-control" %>
|
2019-08-19 13:52:26 +02:00
|
|
|
</div>
|
|
|
|
|
|
2019-08-19 15:45:44 +02:00
|
|
|
<div class="form-group">
|
2022-06-05 11:40:43 +02:00
|
|
|
<%= f.label t('common.forms.auth.current_password') %>
|
2019-08-19 15:45:44 +02:00
|
|
|
<%= f.password_field :current_password, autocomplete: "current-password", class: "form-control" %>
|
2019-08-19 16:43:32 +02:00
|
|
|
<small id="currentPasswordHelp" class="form-text text-muted">
|
|
|
|
|
we need your current password to confirm your changes
|
|
|
|
|
</small>
|
2019-08-19 13:52:26 +02:00
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="actions">
|
2022-06-05 11:40:43 +02:00
|
|
|
<%= f.submit t('common.forms.auth.update_profile'), class: "btn btn-dark btn-block" %>
|
2019-08-19 13:52:26 +02:00
|
|
|
</div>
|
|
|
|
|
<% end %>
|
|
|
|
|
|
2019-08-19 16:43:32 +02:00
|
|
|
<br />
|
|
|
|
|
|
2019-09-19 18:30:29 +02:00
|
|
|
<div class="edit_user">
|
2022-06-05 11:40:43 +02:00
|
|
|
<h3><%= t('common.forms.auth.cancel_account') %></h3>
|
|
|
|
|
|
|
|
|
|
<%= 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" %>
|
2019-09-19 18:30:29 +02:00
|
|
|
</div>
|