-
Notifications
You must be signed in to change notification settings - Fork 1.2k
/
Copy pathsettings(html).html
51 lines (42 loc) · 2.42 KB
/
settings(html).html
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<div class="container">
<div class="row">
<div class="col-sm-12">
<h1<% if (filters.i18nSupport) { %> translate="CHANGE_PASSWORD"<% } %>><% if (!filters.i18nSupport) { %>Change Password<% } %></h1>
</div>
<div class="col-sm-12">
<form class="form" name="form" ng-submit="vm.changePassword(form)" novalidate>
<div class="form-group">
<label<% if (filters.i18nSupport) { %> translate="CURRENT_PASSWORD"<% } %>><% if (!filters.i18nSupport) { %>Current Password<% } %></label>
<input type="password" name="password" class="form-control" ng-model="vm.user.oldPassword"
mongoose-error/>
<p class="help-block" ng-show="form.password.$error.mongoose">
{{ vm.errors.other }}
</p>
</div>
<div class="form-group">
<label<% if (filters.i18nSupport) { %> translate="NEW_PASSWORD"<% } %>><% if (!filters.i18nSupport) { %>New Password<% } %></label>
<input type="password" name="newPassword" class="form-control" ng-model="vm.user.newPassword"
ng-minlength="3"
required/>
<p class="help-block"
ng-show="(form.newPassword.$error.minlength || form.newPassword.$error.required) && (form.newPassword.$dirty || vm.submitted)"<% if (filters.i18nSupport) { %> translate="PASSWORD_LENGTH_MSG"<% } %>>
<% if (!filters.i18nSupport) { %>Password must be at least 3 characters.<% } %>
</p>
</div>
<div class="form-group">
<label<% if (filters.i18nSupport) { %> translate="CONFIRM_NEW_PASSWORD"<% } %>><% if (!filters.i18nSupport) { %>Confirm New Password<% } %></label>
<input type="password" name="confirmPassword" class="form-control" ng-model="vm.user.confirmPassword"
match="vm.user.newPassword"
ng-minlength="3"
required=""/>
<p class="help-block"
ng-show="form.confirmPassword.$error.match && vm.submitted"<% if (filters.i18nSupport) { %> translate="PASSWORDS_MATCH_MSG"<% } %>>
<% if (!filters.i18nSupport) { %>Passwords must match.<% } %>
</p>
</div>
<p class="help-block"> {{ vm.message }} </p>
<button class="btn btn-lg btn-primary" type="submit"<% if (filters.i18nSupport) { %> translate="SAVE_CHANGES"<% } %>><% if (!filters.i18nSupport) { %>Save changes<% } %></button>
</form>
</div>
</div>
</div>