Skip to content

Commit

Permalink
[chores:ui] Added help text to password change form
Browse files Browse the repository at this point in the history
  • Loading branch information
pandafy committed Nov 22, 2023
1 parent c892b5d commit d6698f3
Show file tree
Hide file tree
Showing 9 changed files with 38 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ exports[`<PasswordChange /> rendering should not show 'cancel' button if passwor
<h1>
Change your password
</h1>
<p>
Use the form below to change your password.
</p>
<div
className="row current-password"
>
Expand Down Expand Up @@ -162,6 +165,9 @@ exports[`<PasswordChange /> rendering should render correctly 1`] = `
<h1>
Change your password
</h1>
<p>
Use the form below to change your password.
</p>
<div
className="row current-password"
>
Expand Down Expand Up @@ -316,6 +322,9 @@ exports[`<PasswordChange /> rendering with placeholder translation tags should r
<h1>
PWD_CHANGE_TITL
</h1>
<p>
PWD_CHANGE_HELP_TXT
</p>
<div
className="row current-password"
>
Expand Down
1 change: 1 addition & 0 deletions client/components/password-change/password-change.js
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@ export default class PasswordChange extends React.Component {
<form className="main-column" onSubmit={this.handleSubmit}>
<div className="inner">
<h1>{t`PWD_CHANGE_TITL`}</h1>
<p>{t`PWD_CHANGE_HELP_TXT`}</p>
{getError(errors)}

{this.getPasswordField({
Expand Down
4 changes: 4 additions & 0 deletions client/test-translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,10 @@
"msgid": "PWD_CHANGE_TITL",
"msgstr": ["Change your password"]
},
"PWD_CHANGE_HELP_TXT": {
"msgid": "PWD_CHANGE_HELP_TXT",
"msgstr": ["Use the form below to change your password."]
},
"PWD1_LBL": {
"msgid": "PWD1_LBL",
"msgstr": ["New Password"]
Expand Down
4 changes: 4 additions & 0 deletions i18n/de.po
Original file line number Diff line number Diff line change
Expand Up @@ -379,6 +379,10 @@ msgstr "Bestätigen Sie die Passwortänderung"
msgid "PWD_CHANGE_TITL"
msgstr "Passwort ändern"

#: client/components/password-change/password-change.js:177
msgid "PWD_CHANGE_HELP_TXT"
msgstr "Verwenden Sie das untenstehende Formular, um Ihr Passwort zu ändern."

#: client/components/password-change/password-change.js:87
#: client/components/password-change/password-change.js:93
#: client/components/password-change/password-change.test.js:129
Expand Down
4 changes: 4 additions & 0 deletions i18n/en.po
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,10 @@ msgstr "Change password"
msgid "PWD_CHANGE_TITL"
msgstr "Change your password"

#: client/components/password-change/password-change.js:177
msgid "PWD_CHANGE_HELP_TXT"
msgstr "Use the form below to change your password."

#: client/components/password-change/password-change.js:185
msgid "PWD1_LBL"
msgstr "New Password"
Expand Down
4 changes: 4 additions & 0 deletions i18n/fur.po
Original file line number Diff line number Diff line change
Expand Up @@ -358,6 +358,10 @@ msgstr "Conferme il cambi de password"
msgid "PWD_CHANGE_TITL"
msgstr "Cambi de password"

#: client/components/password-change/password-change.js:177
msgid "PWD_CHANGE_HELP_TXT"
msgstr "Use the form below to change your password."

#: client/components/password-change/password-change.js:117
msgid "PWD1_LBL"
msgstr "Gnove password"
Expand Down
4 changes: 4 additions & 0 deletions i18n/it.po
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,10 @@ msgstr "Conferma cambio password"
msgid "PWD_CHANGE_TITL"
msgstr "Cambia password"

#: client/components/password-change/password-change.js:177
msgid "PWD_CHANGE_HELP_TXT"
msgstr "Utilizza il modulo sottostante per modificare la tua password."

#: client/components/password-change/password-change.js:117
msgid "PWD1_LBL"
msgstr "Nuova password"
Expand Down
4 changes: 4 additions & 0 deletions i18n/ru.po
Original file line number Diff line number Diff line change
Expand Up @@ -356,6 +356,10 @@ msgstr "Подтвердите смену пароля"
msgid "PWD_CHANGE_TITL"
msgstr "Изменить пароль"

#: client/components/password-change/password-change.js:177
msgid "PWD_CHANGE_HELP_TXT"
msgstr "Используйте форму ниже, чтобы изменить свой пароль."

#: client/components/password-change/password-change.js:117
msgid "PWD1_LBL"
msgstr "Новый пароль"
Expand Down
4 changes: 4 additions & 0 deletions i18n/sl.po
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,10 @@ msgstr "Potrdite spremembo gesla"
msgid "PWD_CHANGE_TITL"
msgstr "Sprememba gesla"

#: client/components/password-change/password-change.js:177
msgid "PWD_CHANGE_HELP_TXT"
msgstr "Utilize il formulari par cambiâ la tô password."

#: client/components/password-change/password-change.js:117
msgid "PWD1_LBL"
msgstr "Novo geslo"
Expand Down

0 comments on commit d6698f3

Please sign in to comment.