diff options
Diffstat (limited to 'client/src/app/+admin/users/user-list/user-list.component.html')
-rw-r--r-- | client/src/app/+admin/users/user-list/user-list.component.html | 25 |
1 files changed, 4 insertions, 21 deletions
diff --git a/client/src/app/+admin/users/user-list/user-list.component.html b/client/src/app/+admin/users/user-list/user-list.component.html index 36193d119..3d3d7e054 100644 --- a/client/src/app/+admin/users/user-list/user-list.component.html +++ b/client/src/app/+admin/users/user-list/user-list.component.html | |||
@@ -1,26 +1,9 @@ | |||
1 | <h3>Users list</h3> | 1 | <h3>Users list</h3> |
2 | 2 | ||
3 | <table class="table table-hover"> | 3 | <ng2-smart-table |
4 | <thead> | 4 | [settings]="tableSettings" [source]="usersSource" |
5 | <tr> | 5 | (delete)="removeUser($event)" |
6 | <th class="table-column-id">ID</th> | 6 | ></ng2-smart-table> |
7 | <th>Username</th> | ||
8 | <th>Created Date</th> | ||
9 | <th class="text-right">Remove</th> | ||
10 | </tr> | ||
11 | </thead> | ||
12 | |||
13 | <tbody> | ||
14 | <tr *ngFor="let user of users"> | ||
15 | <td>{{ user.id }}</td> | ||
16 | <td>{{ user.username }}</td> | ||
17 | <td>{{ user.createdAt | date: 'medium' }}</td> | ||
18 | <td class="text-right"> | ||
19 | <span class="glyphicon glyphicon-remove" *ngIf="!user.isAdmin()" (click)="removeUser(user)"></span> | ||
20 | </td> | ||
21 | </tr> | ||
22 | </tbody> | ||
23 | </table> | ||
24 | 7 | ||
25 | <a class="add-user btn btn-success pull-right" [routerLink]="['/admin/users/add']"> | 8 | <a class="add-user btn btn-success pull-right" [routerLink]="['/admin/users/add']"> |
26 | <span class="glyphicon glyphicon-plus"></span> | 9 | <span class="glyphicon glyphicon-plus"></span> |