Make Admin Panel People page text translateable

This commit is contained in:
Lauri Ojansivu 2017-11-19 01:05:09 +02:00
parent 22e43e6591
commit 622292e40e
2 changed files with 18 additions and 15 deletions

View file

@ -22,7 +22,7 @@ template(name="peopleGeneral")
tr tr
th {{_ 'username'}} th {{_ 'username'}}
th {{_ 'fullname'}} th {{_ 'fullname'}}
th {{_ 'isAdmin'}} th {{_ 'admin'}}
th {{_ 'email'}} th {{_ 'email'}}
th {{_ 'verified'}} th {{_ 'verified'}}
th {{_ 'createdAt'}} th {{_ 'createdAt'}}
@ -37,24 +37,24 @@ template(name="peopleRow")
td {{ userData.profile.fullname }} td {{ userData.profile.fullname }}
td td
if userData.isAdmin if userData.isAdmin
| true | {{_ 'yes'}}
else else
| false | {{_ 'no'}}
td {{ userData.emails.[0].address }} td {{ userData.emails.[0].address }}
td td
if userData.emails.[0].verified if userData.emails.[0].verified
| true | {{_ 'yes'}}
else else
| false | {{_ 'no'}}
td {{ moment userData.createdAt 'LLL' }} td {{ moment userData.createdAt 'LLL' }}
td td
if userData.loginDisabled if userData.loginDisabled
| false | {{_ 'no'}}
else else
| true | {{_ 'yes'}}
td td
a.edit-user a.edit-user
| edit | {{_ 'edit'}}
template(name="editUserPopup") template(name="editUserPopup")
form form
@ -76,14 +76,14 @@ template(name="editUserPopup")
| {{_ 'error-email-taken'}} | {{_ 'error-email-taken'}}
input.js-profile-email(type="email" value="{{user.emails.[0].address}}") input.js-profile-email(type="email" value="{{user.emails.[0].address}}")
label label
| {{_ 'isAdmin'}} | {{_ 'admin'}}
select.select-role.js-profile-isadmin select.select-role.js-profile-isadmin
option(value="false") No option(value="false") {{_ 'no'}}
option(value="true" selected="{{user.isAdmin}}") Yes option(value="true" selected="{{user.isAdmin}}") {{_ 'yes'}}
label label
| {{_ 'isActive'}} | {{_ 'active'}}
select.select-active.js-profile-isactive select.select-active.js-profile-isactive
option(value="false") Yes option(value="false") {{_ 'yes'}}
option(value="true" selected="{{user.loginDisabled}}") No option(value="true" selected="{{user.loginDisabled}}") {{_ 'no'}}
input.primary.wide(type="submit" value="{{_ 'save'}}") input.primary.wide(type="submit" value="{{_ 'save'}}")

View file

@ -404,5 +404,8 @@
"yes": "Yes", "yes": "Yes",
"no": "No", "no": "No",
"accounts": "Accounts", "accounts": "Accounts",
"accounts-allowEmailChange": "Allow Email Change" "accounts-allowEmailChange": "Allow Email Change",
"createdAt": "Created at",
"verified": "Verified",
"active": "Active"
} }