From a6e1ace2b6bdba8c08a4acfa42433f3ac073b747 Mon Sep 17 00:00:00 2001
From: rsanchez <rsanchez@curisit.net>
Date: Tue, 21 Mar 2017 10:16:22 +0000
Subject: [PATCH] #3527 feature - Added all catalogs and working fine

---
 securis/src/main/webapp/src/app/listing/user.list.component.ts |   33 +++++++++++++++------------------
 1 files changed, 15 insertions(+), 18 deletions(-)

diff --git a/securis/src/main/webapp/src/app/listing/user.list.component.ts b/securis/src/main/webapp/src/app/listing/user.list.component.ts
index 7772a11..cd26bf6 100644
--- a/securis/src/main/webapp/src/app/listing/user.list.component.ts
+++ b/securis/src/main/webapp/src/app/listing/user.list.component.ts
@@ -16,19 +16,15 @@
 import { ListingBase } from './base';
 
 
-var app_example = { 
-	code: 'CICS',
-  creation_timestamp: 1418384439000,
-  description: 'Wellbore integrity analysis software',
-  id: 1,
-  license_filename: 'config_server.lic',
-  name: 'CurisIntegrity',
-  metadata: 
-   [ { key: 'max_docs',
-       value: '250000',
-       readonly: true,
-       mandatory: true } ] 
-}
+var user_example = { username: 'rym',
+    roles: [ 1 ],
+    lastLogin: 1488885433000,
+    modificationTimestamp: 1479898458000,
+    email: 'rbouchair@curistec.com',
+    first_name: 'Rym',
+    last_name: 'Bouchair',
+    creation_timestamp: 1479898458000,
+    organizations_ids: [ 1, 2, 5, 6, 7, 8 ] }
 
 @Component({
   selector: 'user-list',
@@ -37,9 +33,10 @@
 export class UserListComponent extends ListingBase implements AfterViewInit {
 
   columns: ITdDataTableColumn[] = [
-    { name: 'code', label: 'Code', tooltip: 'Application code' },
-    { name: 'name', label: 'Application name' },
-    { name: 'creation_timestamp', label: 'Creation date' },
+    { name: 'username', label: 'Username', tooltip: 'Username to access app' },
+    { name: 'fullname', label: 'Fullname' },
+    { name: 'email', label: 'User email' },
+    { name: 'lastLogin', label: 'Last login date' },
     { name: 'menu', label: '' }
   ];
 
@@ -81,8 +78,8 @@
     this.router.navigate(['users/create']);
   }
 
-  edit(eleId: number | string) : void {
-    this.router.navigate([`users/edit/${eleId}`]);
+  edit(username: number | string) : void {
+    this.router.navigate([`users/edit/${username}`]);
   }
 
 }

--
Gitblit v1.3.2