diff options
author | Lauri Ojansivu <x@xet7.org> | 2020-02-22 02:49:14 +0200 |
---|---|---|
committer | Lauri Ojansivu <x@xet7.org> | 2020-02-22 02:49:14 +0200 |
commit | e0ca960a35cf006880019ba28fc82aa30f289a71 (patch) | |
tree | b52103fa0a19ca0b066ddb5bea3b6ed78e569046 /client/components/settings/peopleBody.jade | |
parent | 0e755e021b34de90617fa62eceb949ba5e19d39a (diff) | |
download | wekan-e0ca960a35cf006880019ba28fc82aa30f289a71.tar.gz wekan-e0ca960a35cf006880019ba28fc82aa30f289a71.tar.bz2 wekan-e0ca960a35cf006880019ba28fc82aa30f289a71.zip |
Create New User in Admin Panel. Works, but does not save fullname yet,
so currently it's needed to edit add fullname later.
Thanks to xet7 !
Related #802
Diffstat (limited to 'client/components/settings/peopleBody.jade')
-rw-r--r-- | client/components/settings/peopleBody.jade | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/client/components/settings/peopleBody.jade b/client/components/settings/peopleBody.jade index b8a94337..ca4bc382 100644 --- a/client/components/settings/peopleBody.jade +++ b/client/components/settings/peopleBody.jade @@ -40,9 +40,15 @@ template(name="peopleGeneral") th {{_ 'active'}} th {{_ 'authentication-method'}} th + +newUserRow each user in peopleList +peopleRow(userId=user._id) +template(name="newUserRow") + a.new-user + i.fa.fa-edit + | {{_ 'new'}} + template(name="peopleRow") tr if userData.loginDisabled @@ -148,3 +154,49 @@ template(name="editUserPopup") // div // input#deleteButton.primary.wide(type="button" value="{{_ 'delete'}}") +template(name="newUserPopup") + form + //label.hide.userId(type="text" value=user._id) + label + | {{_ 'fullname'}} + input.js-profile-fullname(type="text" value="" autofocus) + label + | {{_ 'username'}} + span.error.hide.username-taken + | {{_ 'error-username-taken'}} + //if isLdap + // input.js-profile-username(type="text" value=user.username readonly) + //else + input.js-profile-username(type="text" value="") + label + | {{_ 'email'}} + span.error.hide.email-taken + | {{_ 'error-email-taken'}} + //if isLdap + // input.js-profile-email(type="email" value="{{user.emails.[0].address}}" readonly) + //else + input.js-profile-email(type="email" value="") + label + | {{_ 'admin'}} + select.select-role.js-profile-isadmin + option(value="false" selected="selected") {{_ 'no'}} + option(value="true") {{_ 'yes'}} + label + | {{_ 'active'}} + select.select-active.js-profile-isactive + option(value="false" selected="selected") {{_ 'yes'}} + option(value="true") {{_ 'no'}} + label + | {{_ 'authentication-type'}} + select.select-authenticationMethod.js-authenticationMethod + each authentications + if isSelected value + option(value="{{value}}" selected) {{_ value}} + else + option(value="{{value}}") {{_ value}} + hr + label + | {{_ 'password'}} + input.js-profile-password(type="password") + div.buttonsContainer + input.primary.wide(type="submit" value="{{_ 'save'}}") |