2020-04-25 08:04:23 -07:00
|
|
|
.card
|
|
|
|
.card-body
|
|
|
|
= bootstrap_form_for(resource, as: resource_name, url: '/settings/account', html: { method: :put }) do |f|
|
|
|
|
= render 'modal/password', f: f
|
|
|
|
|
2020-05-22 14:33:30 -07:00
|
|
|
= render 'devise/shared/error_messages', resource: resource
|
2020-04-25 08:04:23 -07:00
|
|
|
|
|
|
|
= f.text_field :screen_name, autofocus: true, label: t('views.settings.account.username')
|
|
|
|
|
|
|
|
= f.email_field :email, label: t('views.settings.account.email')
|
|
|
|
- if devise_mapping.confirmable? && resource.pending_reconfirmation?
|
|
|
|
%div= raw t('views.settings.account.email_confirm', resource: resource.unconfirmed_email)
|
|
|
|
|
2020-05-10 13:27:39 -07:00
|
|
|
= f.password_field :password, autocomplete: :off, label: t('views.settings.account.password'), help: t('views.settings.account.password_help')
|
|
|
|
= f.password_field :password_confirmation, autocomplete: :off, label: t('views.settings.account.password_confirm')
|
2020-04-25 08:04:23 -07:00
|
|
|
|
2020-05-10 01:40:48 -07:00
|
|
|
%button.btn.btn-primary{ data: { target: '#modal-passwd', toggle: :modal, type: :button } }
|
2020-04-25 08:04:23 -07:00
|
|
|
= t 'views.actions.save'
|
|
|
|
|
|
|
|
%hr/
|
|
|
|
%p
|
|
|
|
= t 'views.settings.account.unsatisfied'
|
2020-05-10 01:40:48 -07:00
|
|
|
= button_to t('views.settings.account.delete'), '/settings/account', data: { confirm: 'Are you sure?' }, method: :delete, class: 'btn btn-danger btn-xs'
|
2020-04-25 08:04:23 -07:00
|
|
|
|
|
|
|
= link_to t('views.settings.account.back'), :back
|
|
|
|
|
2020-05-10 01:40:48 -07:00
|
|
|
.visible-xs= render 'shared/links'
|
2020-04-25 08:04:23 -07:00
|
|
|
|
|
|
|
|