@@ -30,13 +30,13 @@
|
||||
= form.label :password, class: "required"
|
||||
= form.submit t("helpers.buttons.save"), class: "btn btn-primary"
|
||||
|
||||
- if method == :patch
|
||||
h4.mt-5 = t("users.edit.password_section")
|
||||
- if method == :patch
|
||||
h4.mt-5 = t("users.edit.password_section")
|
||||
|
||||
= form_with model: user, method: method do |form|
|
||||
.row.mb-3
|
||||
.col
|
||||
.form-floating
|
||||
= form.password_field :password, autocomplete: "off", class: "form-control"
|
||||
= form.label :password, class: "required"
|
||||
= form.submit t("helpers.buttons.save"), class: "btn btn-primary"
|
||||
= form_with model: user, url: user_password_path(user) do |form|
|
||||
.row.mb-3
|
||||
.col
|
||||
.form-floating
|
||||
= form.password_field :password, autocomplete: "off", class: "form-control"
|
||||
= form.label :password, class: "required"
|
||||
= form.submit t("helpers.buttons.save_password"), class: "btn btn-primary"
|
||||
Reference in New Issue
Block a user