mirror of https://github.com/wekan/wekan
The Open Source kanban (built with Meteor). Keep variable/table/field names camelCase. For translations, only add Pull Request changes to wekan/i18n/en.i18n.json , other translations are done at https://transifex.com/wekan/wekan only.
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
84 lines
2.1 KiB
84 lines
2.1 KiB
template(name="people")
|
|
.setting-content
|
|
unless currentUser.isAdmin
|
|
| {{_ 'error-notAuthorized'}}
|
|
else
|
|
.content-title
|
|
span {{_ 'people'}}
|
|
.content-body
|
|
.side-menu
|
|
ul
|
|
li.active
|
|
a.js-setting-menu(data-id="people-setting") {{_ 'people'}}
|
|
.main-body
|
|
if loading.get
|
|
+spinner
|
|
else if people.get
|
|
+peopleGeneral
|
|
|
|
template(name="peopleGeneral")
|
|
table
|
|
tbody
|
|
tr
|
|
th {{_ 'username'}}
|
|
th {{_ 'fullname'}}
|
|
th {{_ 'isAdmin'}}
|
|
th {{_ 'email'}}
|
|
th {{_ 'verified'}}
|
|
th {{_ 'createdAt'}}
|
|
th {{_ 'active'}}
|
|
th
|
|
each user in peopleList
|
|
+peopleRow(userId=user._id)
|
|
|
|
template(name="peopleRow")
|
|
tr
|
|
td.username {{ userData.username }}
|
|
td {{ userData.profile.fullname }}
|
|
td
|
|
if userData.isAdmin
|
|
| true
|
|
else
|
|
| false
|
|
td {{ userData.emails.[0].address }}
|
|
td
|
|
if userData.emails.[0].verified
|
|
| true
|
|
else
|
|
| false
|
|
td {{ userData.createdAt }}
|
|
td
|
|
if userData.active
|
|
| true
|
|
else
|
|
| false
|
|
td
|
|
a.edit-user
|
|
| edit
|
|
|
|
template(name="editUserPopup")
|
|
form
|
|
label.hide.userId(type="text" value=user._id)
|
|
label
|
|
| {{_ 'fullname'}}
|
|
input.js-profile-fullname(type="text" value=user.profile.fullname autofocus)
|
|
label
|
|
| {{_ 'username'}}
|
|
span.error.hide.username-taken
|
|
| {{_ 'error-username-taken'}}
|
|
input.js-profile-username(type="text" value=user.username)
|
|
label
|
|
| {{_ 'initials'}}
|
|
input.js-profile-initials(type="text" value=user.profile.initials)
|
|
label
|
|
| {{_ 'email'}}
|
|
span.error.hide.email-taken
|
|
| {{_ 'error-email-taken'}}
|
|
input.js-profile-email(type="email" value="{{user.emails.[0].address}}")
|
|
label
|
|
| {{_ 'isAdmin'}}
|
|
select.select-role.js-profile-isadmin
|
|
option(value="false") No
|
|
option(value="true" selected="{{user.isAdmin}}") Yes
|
|
|
|
input.primary.wide(type="submit" value="{{_ 'save'}}")
|
|
|