rsanchez
2017-03-21 a6e1ace2b6bdba8c08a4acfa42433f3ac073b747
securis/src/main/webapp/src/app/forms/user.form.component.ts
....@@ -10,8 +10,16 @@
1010 import { FormBase, IComboOption } from './base';
1111 import { ActivatedRoute, Router } from '@angular/router';
1212
13
-var app_example = {
14
-
13
+var user_example = {
14
+ username: 'rym',
15
+ roles: [ 1 ],
16
+ lastLogin: 1488885433000,
17
+ modificationTimestamp: 1479898458000,
18
+ email: 'rbouchair@curistec.com',
19
+ first_name: 'Rym',
20
+ last_name: 'Bouchair',
21
+ creation_timestamp: 1479898458000,
22
+ organizations_ids: [ 1, 2, 5, 6, 7, 8 ]
1523 }
1624
1725 @Component({
....@@ -39,7 +47,7 @@
3947 init() : void {
4048 super.setFirstFocus();
4149 super.reset();
42
- super.prepareInitialData('userId', {
50
+ super.prepareInitialData('username', {
4351 metadata: []
4452 });
4553 }