diff options
author | Maxime Quandalle <maxime@quandalle.com> | 2015-06-01 17:56:00 +0200 |
---|---|---|
committer | Maxime Quandalle <maxime@quandalle.com> | 2015-06-03 06:46:41 +0200 |
commit | 7f6929608c6423505778722dd4cb7bf8e837729e (patch) | |
tree | 67b1cca95c23e79e939a579c651ecbe42e37c8dd /client/components/users/userHeader.jade | |
parent | 5f09c0ce406075bbd1ed9061f444e615375aa2d3 (diff) | |
download | wekan-7f6929608c6423505778722dd4cb7bf8e837729e.tar.gz wekan-7f6929608c6423505778722dd4cb7bf8e837729e.tar.bz2 wekan-7f6929608c6423505778722dd4cb7bf8e837729e.zip |
Work on the user account system
Allow a user to modifies its name, username, initials, and password.
Fixes username handling on sandstorm.
Fixes #149.
Diffstat (limited to 'client/components/users/userHeader.jade')
-rw-r--r-- | client/components/users/userHeader.jade | 35 |
1 files changed, 28 insertions, 7 deletions
diff --git a/client/components/users/userHeader.jade b/client/components/users/userHeader.jade index eb3d265c..b8201cb6 100644 --- a/client/components/users/userHeader.jade +++ b/client/components/users/userHeader.jade @@ -1,23 +1,44 @@ template(name="headerUserBar") - a#header-user-bar.js-open-header-member-menu - .header-user-bar-name + a#header-user-bar + .header-user-bar-name.js-open-header-member-menu i.fa.fa-chevron-down if currentUser.profile.name = currentUser.profile.name else = currentUser.username - +userAvatar(user=currentUser) + .header-user-bar-avatar.js-change-avatar + +userAvatar(user=currentUser) template(name="memberMenuPopup") ul.pop-over-list - li: a(href="{{pathFor route='Profile' username=currentUser.username}}") {{_ 'profile'}} - li: a.js-language {{_ 'language'}} - li: a(href = "{{pathFor route='Settings'}}") {{_ 'settings'}} + with currentUser + li: a.js-edit-profile Edit Profile… + li: a.js-change-avatar Change Avatar… + li: a.js-change-password Change Password… + li: a.js-change-language Change Language… hr ul.pop-over-list li: a.js-logout {{_ 'log-out'}} -template(name="setLanguagePopup") +template(name="editProfilePopup") + form + label + | {{_ "fullname"}} + input.js-profile-fullname(type="text" value=profile.name autofocus) + label + | {{_ "username"}} + input.js-profile-username(type="text" value=username) + label + | Initials + input.js-profile-initials(type="text" value=profile.initials) + input.primary.wide(type="submit" value="{{_ 'save'}}") + +template(name="changeAvatarPopup") + +template(name="changePasswordPopup") + +atForm(state='changePwd') + +template(name="changeLanguagePopup") ul.pop-over-list each languages li(class="{{# if isCurrentLanguage}}active{{/if}}") |