]>
Commit | Line | Data |
---|---|---|
cd83ea1b | 1 | <div class="admin-sub-header"> |
b1d40cff | 2 | <div i18n class="form-sub-title">Users list</div> |
dfe3ec6b | 3 | |
4c200caa | 4 | <a class="add-button" routerLink="/admin/users/create"> |
04e0fc48 | 5 | <span class="icon icon-add"></span> |
b1d40cff | 6 | <ng-container i18n>Create user</ng-container> |
04e0fc48 | 7 | </a> |
897ec54d | 8 | </div> |
04e0fc48 | 9 | |
ab998f7b C |
10 | <p-table |
11 | [value]="users" [lazy]="true" [paginator]="true" [totalRecords]="totalRecords" [rows]="rowsPerPage" | |
12 | [sortField]="sort.field" [sortOrder]="sort.order" (onLazyLoad)="loadLazy($event)" | |
04e0fc48 | 13 | > |
ab998f7b C |
14 | <ng-template pTemplate="header"> |
15 | <tr> | |
b1d40cff C |
16 | <th i18n pSortableColumn="username">Username <p-sortIcon field="username"></p-sortIcon></th> |
17 | <th i18n>Email</th> | |
18 | <th i18n>Video quota</th> | |
19 | <th i18n>Role</th> | |
20 | <th i18n pSortableColumn="createdAt">Created <p-sortIcon field="createdAt"></p-sortIcon></th> | |
ab998f7b C |
21 | <th></th> |
22 | </tr> | |
23 | </ng-template> | |
24 | ||
25 | <ng-template pTemplate="body" let-user> | |
26 | <tr> | |
27 | <td>{{ user.username }}</td> | |
28 | <td>{{ user.email }}</td> | |
29 | <td>{{ user.videoQuota }}</td> | |
30 | <td>{{ user.roleLabel }}</td> | |
31 | <td>{{ user.createdAt }}</td> | |
32 | <td class="action-cell"> | |
eacb25c4 C |
33 | <my-action-dropdown i18n-label label="Actions" [actions]="userActions" [entry]="user"></my-action-dropdown> |
34 | <!--<my-edit-button [routerLink]="getRouterUserEditLink(user)"></my-edit-button>--> | |
35 | <!--<my-delete-button (click)="removeUser(user)"></my-delete-button>--> | |
ab998f7b C |
36 | </td> |
37 | </tr> | |
38 | </ng-template> | |
39 | </p-table> |