More translations, incl. attributes
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
= form_with model: user, method: method do |form|
|
||||
- if method == :patch
|
||||
h4 General settings
|
||||
h4 = t("users.edit.general_section")
|
||||
|
||||
.row.mb-3
|
||||
.col
|
||||
@@ -21,7 +21,6 @@
|
||||
.form-floating
|
||||
= form.select :lang, Languages::AVAILABLE_LANGUAGES.map { |lang| [ lang[:name], lang[:id] ] }, {}, class: "form-select"
|
||||
= form.label :lang
|
||||
| Language
|
||||
|
||||
- if method == :post
|
||||
.row.mb-3
|
||||
@@ -29,10 +28,10 @@
|
||||
.form-floating
|
||||
= form.password_field :password, autocomplete: "off", class: "form-control"
|
||||
= form.label :password, class: "required"
|
||||
= form.submit "Save", class: "btn btn-primary"
|
||||
= form.submit t("helpers.buttons.save"), class: "btn btn-primary"
|
||||
|
||||
- if method == :patch
|
||||
h4.mt-5 Change password
|
||||
h4.mt-5 = t("users.edit.password_section")
|
||||
|
||||
= form_with model: user, method: method do |form|
|
||||
.row.mb-3
|
||||
@@ -40,5 +39,4 @@
|
||||
.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"
|
||||
= form.submit t("helpers.buttons.save"), class: "btn btn-primary"
|
Reference in New Issue
Block a user