Retrospring/app/views/settings/_account.haml

25 lines
1.0 KiB
Plaintext
Raw Normal View History

2020-04-25 08:04:23 -07:00
.card
.card-body
2022-02-05 10:26:04 -08:00
= bootstrap_form_for(resource, as: resource_name, url: "/settings/account", html: { method: :put }) do |f|
= render "modal/password", f: f
= render "devise/shared/error_messages", resource: resource
2020-04-25 08:04:23 -07:00
= f.text_field :screen_name, autofocus: true, autocomplete: :username
2020-04-25 08:04:23 -07:00
= f.email_field :email, autocomplete: :email
2020-04-25 08:04:23 -07:00
- if devise_mapping.confirmable? && resource.pending_reconfirmation?
2022-02-05 10:26:04 -08:00
.alert.alert-info= raw t(".email_confirm", resource: resource.unconfirmed_email)
2020-04-25 08:04:23 -07:00
= f.password_field :password, autocomplete: "new-password", help: t(".help.password")
= f.password_field :password_confirmation, autocomplete: "new-password"
2020-04-25 08:04:23 -07:00
2022-02-05 10:26:04 -08:00
%button.btn.btn-primary{ data: { target: "#modal-passwd", toggle: :modal, type: :button } }
= t("voc.save")
2020-04-25 08:04:23 -07:00
%hr/
%p
2022-02-05 10:26:04 -08:00
= t(".delete.heading")
= button_to t(".delete.action"), "/settings/account", data: { confirm: t("voc.confirm") }, method: :delete, class: "btn btn-danger btn-xs"
2020-04-25 08:04:23 -07:00
2022-02-05 10:26:04 -08:00
.visible-xs= render "shared/links"