mirror of
https://github.com/wekan/wekan.git
synced 2026-02-05 08:01:49 +01:00
Admin Panel/People/People/New User: Added Initials.
Thanks to xet7 !
This commit is contained in:
parent
0480c2195c
commit
3a2deb0039
3 changed files with 13 additions and 2 deletions
|
|
@ -332,7 +332,7 @@ template(name="editUserPopup")
|
|||
input.js-profile-fullname(type="text" value=user.profile.fullname required)
|
||||
label
|
||||
| {{_ 'initials'}}
|
||||
input.js-profile-initials(type="text" value=user.profile.initials)
|
||||
input.js-profile-initials(type="text" value=user.profile.initials required)
|
||||
label
|
||||
| {{_ 'admin'}}
|
||||
select.select-role.js-profile-isadmin
|
||||
|
|
@ -436,6 +436,9 @@ template(name="newUserPopup")
|
|||
// input.js-profile-username(type="text" value=user.username readonly)
|
||||
//else
|
||||
input.js-profile-username(type="text" value="" required)
|
||||
label
|
||||
| {{_ 'initials'}}
|
||||
input.js-profile-initials(type="text" value="" required)
|
||||
label
|
||||
| {{_ 'email'}}
|
||||
span.error.hide.email-taken
|
||||
|
|
|
|||
|
|
@ -654,6 +654,7 @@ Template.newUserPopup.events({
|
|||
event.preventDefault();
|
||||
const fullname = templateInstance.find('.js-profile-fullname').value.trim();
|
||||
const username = templateInstance.find('.js-profile-username').value.trim();
|
||||
const initials = templateInstance.find('.js-profile-initials').value.trim();
|
||||
const password = templateInstance.find('.js-profile-password').value;
|
||||
const isAdmin = templateInstance.find('.js-profile-isadmin').value.trim();
|
||||
const isActive = templateInstance.find('.js-profile-isactive').value.trim();
|
||||
|
|
@ -666,6 +667,7 @@ Template.newUserPopup.events({
|
|||
'setCreateUser',
|
||||
fullname,
|
||||
username,
|
||||
initials,
|
||||
password,
|
||||
isAdmin,
|
||||
isActive,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue