|
@@ -1,55 +1,63 @@
|
1
|
1
|
<!-- Page Content -->
|
2
|
2
|
<div class="container">
|
3
|
|
- <form name="form" ng-submit="submit()">
|
4
|
|
- <div class="form-group">
|
5
|
|
- <div class="row co-sm-8 col-sm-offset-2" lu-busy="form">
|
6
|
|
- <div class="form-group">
|
7
|
|
- <label for="email" class="col-sm-2 control-label">Email</label>
|
8
|
|
- <div class="col-sm-9">
|
9
|
|
- <input id="email" class="form-control" ng-model="user.Email" lu-enable-permission="LU_USER_EDIT_ME"/>
|
10
|
|
- </div>
|
|
3
|
+ <div class="row co-sm-8 col-sm-offset-2" lu-busy="form">
|
|
4
|
+ <form name="form" ng-submit="submit()">
|
|
5
|
+ <div class="form-group">
|
|
6
|
+ <label for="email" class="col-sm-2 control-label">Email</label>
|
|
7
|
+ <div class="col-sm-9">
|
|
8
|
+ <input id="email" class="form-control" ng-model="user.Email" lu-enable-permission="LU_USER_EDIT_ME"/>
|
11
|
9
|
</div>
|
12
|
|
- <div class="form-group">
|
13
|
|
- <label for="firstname" class="col-sm-2 control-label">Firstname</label>
|
14
|
|
- <div class="col-sm-9">
|
15
|
|
- <input id="firstname" class="form-control" ng-model="user.Firstname" lu-enable-permission="LU_USER_EDIT_ME"/>
|
16
|
|
- </div>
|
|
10
|
+ </div>
|
|
11
|
+
|
|
12
|
+ <div class="form-group">
|
|
13
|
+ <label for="firstname" class="col-sm-2 control-label">Firstname</label>
|
|
14
|
+ <div class="col-sm-9">
|
|
15
|
+ <input id="firstname" class="form-control" ng-model="user.Firstname" lu-enable-permission="LU_USER_EDIT_ME"/>
|
17
|
16
|
</div>
|
18
|
|
- <div class="form-group">
|
19
|
|
- <label for="lastname" class="col-sm-2 control-label">Lastname</label>
|
20
|
|
- <div class="col-sm-9">
|
21
|
|
- <input id="lastname" class="form-control" ng-model="user.Lastname" lu-enable-permission="LU_USER_EDIT_ME"/>
|
22
|
|
- </div>
|
|
17
|
+ </div>
|
|
18
|
+
|
|
19
|
+ <div class="form-group">
|
|
20
|
+ <label for="lastname" class="col-sm-2 control-label">Lastname</label>
|
|
21
|
+ <div class="col-sm-9">
|
|
22
|
+ <input id="lastname" class="form-control" ng-model="user.Lastname" lu-enable-permission="LU_USER_EDIT_ME"/>
|
23
|
23
|
</div>
|
|
24
|
+ </div>
|
|
25
|
+
|
|
26
|
+ <div lu-show-permission="LU_USER_SET_PASSWORD_ME">
|
24
|
27
|
|
25
|
|
- <div class="form-group" lu-show-permission="LU_USER_SET_PASSWORD_ME">
|
|
28
|
+ <div class="form-group">
|
26
|
29
|
<label for="oldPassword" class="col-sm-2 control-label">Old Password</label>
|
27
|
30
|
<div class="col-sm-9">
|
28
|
31
|
<input id="oldPassword" class="form-control" type="password" ng-model="userPassword.old"
|
29
|
32
|
name="oldPassword"/>
|
30
|
33
|
</div>
|
|
34
|
+ </div>
|
|
35
|
+
|
|
36
|
+ <div class="form-group">
|
31
|
37
|
<label for="password" class="col-sm-2 control-label">New Password</label>
|
32
|
38
|
<div class="col-sm-9">
|
33
|
39
|
<input id="password" class="form-control" type="password" ng-model="userPassword.value"
|
34
|
40
|
name="password" ui-validate="passwordValidation"/>
|
35
|
41
|
</div>
|
36
|
|
- <div class="clearfix"></div>
|
|
42
|
+ </div>
|
|
43
|
+
|
|
44
|
+ <div class="form-group">
|
37
|
45
|
<label for="password2" class="col-sm-2 control-label">Confirmation</label>
|
38
|
46
|
<div class="col-sm-9">
|
39
|
47
|
<input id="password2" class="form-control" type="password" ng-model="userPassword.confirm"
|
40
|
48
|
name="password2" ui-validate="password2Validation" ui-validate-watch="'userPassword.value'"/>
|
41
|
49
|
</div>
|
42
|
|
- <div class="clearfix"></div>
|
43
|
|
- <div class="col-sm-offset-2 col-sm-9">
|
44
|
|
- <p class="error" ng-show="form.password.$error.length">Passwords is too short</p>
|
45
|
|
- <p class="error" ng-show="form.password2.$error.same_passwords">Passwords do not match</p>
|
46
|
|
- </div>
|
47
|
50
|
</div>
|
48
|
|
- <div class="clearfix"></div>
|
49
|
|
- <div class="form-group" class="col-sm-12">
|
50
|
|
- <button class="btn btn-default">Edit</button>
|
|
51
|
+
|
|
52
|
+ <div class="col-sm-offset-2 col-sm-9">
|
|
53
|
+ <p class="error" ng-show="form.password.$error.length">Passwords is too short</p>
|
|
54
|
+ <p class="error" ng-show="form.password2.$error.same_passwords">Passwords do not match</p>
|
51
|
55
|
</div>
|
52
|
56
|
</div>
|
53
|
|
- </div>
|
54
|
|
- </form>
|
|
57
|
+
|
|
58
|
+ <div class="form-group col-sm-12">
|
|
59
|
+ <button class="btn btn-default">Edit</button>
|
|
60
|
+ </div>
|
|
61
|
+ </form>
|
|
62
|
+ </div>
|
55
|
63
|
</div>
|