User management
Some checks are pending
CI / scan_ruby (push) Waiting to run
CI / scan_js (push) Waiting to run
CI / lint (push) Waiting to run
CI / test (push) Waiting to run

This commit is contained in:
sto
2025-03-22 09:16:38 +01:00
parent ce5b729fef
commit 0b47cc4d8a
7 changed files with 70 additions and 8 deletions

View File

@@ -1,4 +1,6 @@
= form_with model: user do |form|
= form_with model: user, method: method do |form|
- if method == :patch
h4 General settings
.row.mb-3
.col
.input-group
@@ -9,7 +11,23 @@
.row.mb-3
.col
.form-floating
= form.text_field :email_address, autocomplete: "off", class: "form-control", type: "email"
= form.text_field :email_address, autocomplete: "off", class: "form-control"
= form.label :email_address, class: "required"
div
= form.submit "Save", class: "btn btn-primary"
- if method == :post
.row.mb-3
.col
.form-floating
= form.password_field :password, autocomplete: "off", class: "form-control"
= form.label :password, class: "required"
= form.submit "Save", class: "btn btn-primary"
- if method == :patch
h4.mt-5 Change password
= 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"
| New password
= form.submit "Save new password", class: "btn btn-primary"