-
Notifications
You must be signed in to change notification settings - Fork 1.2k
/
Copy pathsettings(jade).jade
28 lines (25 loc) · 1.36 KB
/
settings(jade).jade
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
div(ng-include='"components/navbar/navbar.html"')
.container
.row
.col-sm-12
h1 Change Password
.col-sm-12
form.form(name='form', ng-submit='changePassword(form)', novalidate='')
.form-group
label(for="password") Current Password
input.form-control#password(type='password', name='password', ng-model='user.oldPassword', mongoose-error='')
p.help-block(ng-show='form.password.$error.mongoose')
| {{ errors.other }}
.form-group
label(for="newPassword") New Password
input.form-control#newPassword(type='password', name='newPassword', ng-model='user.newPassword', ng-minlength='3', required='')
p.help-block(ng-show='(form.newPassword.$error.minlength || form.newPassword.$error.required) && (form.newPassword.$dirty || submitted)')
| Password must be at least 3 characters.
.form-group
label(for="passwordConfirm") Confirm New Password
input.form-control(type='password', name='passwordConfirm', ng-model='passwordConfirm', ng-minlength='3', required='\
', ng-confirm-field='', confirm-against="user.newPassword")
p.help-block(ng-show='form.passwordConfirm.$error.noMatch && submitted')
| Passwords must match.
p.help-block {{ message }}
button.btn.btn-lg.btn-primary(type='submit') Save changes