rsanchez
2017-04-10 8d99c88af55041ff06e6b9372b6b1f66220bed38
securis/src/main/webapp/src/app/forms/user.form.html
....@@ -7,18 +7,6 @@
77 <span flex></span>
88 <button md-icon-button (click)="save()"><md-icon>save</md-icon></button>
99 </md-toolbar>
10
- <!--
11
- username: 'rym',
12
- roles: [ 1 ],
13
- lastLogin: 1488885433000,
14
- modificationTimestamp: 1479898458000,
15
- email: 'rbouchair@curistec.com',
16
- first_name: 'Rym',
17
- last_name: 'Bouchair',
18
- creation_timestamp: 1479898458000,
19
- organizations_ids: [ 1, 2, 5, 6, 7, 8 ]
20
-}
21
- -->
2210 <div class="margin" layout-align-gt-xs="center start" layout-fill="" layout-gt-xs="row">
2311 <md-card flex="70">
2412 <md-card-title>
....@@ -79,7 +67,7 @@
7967 <error-checker [fieldName]="$L.get('field.email')" [formField]="form.controls.email"></error-checker>
8068 </div>
8169 </div>
82
- <div layout="row" layout-fill layout-padding >
70
+ <div layout="row" layout-fill layout-padding >
8371 <td-chips flex [mdTooltip]="$L.get('Organizations that user can access')" [placeholder]="$L.get('Select organizations')"
8472 [items]="orgNames" [(ngModel)]="user_orgs" name="user_orgs" requireMatch>
8573 </td-chips>
....@@ -92,6 +80,11 @@
9280 </md-checkbox>
9381 </div>
9482 </div>
83
+ <div layout="row" layout-fill layout-padding >
84
+ <td-chips flex [mdTooltip]="$L.get('Applications that user can access')" [placeholder]="$L.get('Select applications')"
85
+ [items]="appNames" [(ngModel)]="user_apps" name="user_apps" requireMatch>
86
+ </td-chips>
87
+ </div>
9588 <div layout="row" layout-fill layout-padding *ngIf="!isNew">
9689 <field-readonly [value]="data.lastLogin || '' | timeAgo" label="field.lastLogin" flex></field-readonly>
9790 <field-readonly [value]="data.creation_timestamp | date: 'medium'" label="field.creation_timestamp" flex></field-readonly>