]>
Commit | Line | Data |
---|---|---|
cd83ea1b | 1 | <div class="admin-sub-header"> |
04e0fc48 | 2 | <div class="admin-sub-title">Users list</div> |
dfe3ec6b | 3 | |
04e0fc48 C |
4 | <a class="add-button" routerLink="/admin/users/add"> |
5 | <span class="icon icon-add"></span> | |
6 | Add user | |
7 | </a> | |
897ec54d | 8 | </div> |
04e0fc48 C |
9 | |
10 | <p-dataTable | |
11 | [value]="users" [lazy]="true" [paginator]="true" [totalRecords]="totalRecords" [rows]="rowsPerPage" | |
12 | sortField="id" (onLazyLoad)="loadLazy($event)" | |
13 | > | |
fb4fd623 | 14 | <p-column field="id" header="ID" [sortable]="true" [style]="{ width: '60px' }"></p-column> |
04e0fc48 C |
15 | <p-column field="username" header="Username" [sortable]="true"></p-column> |
16 | <p-column field="email" header="Email"></p-column> | |
17 | <p-column field="videoQuota" header="Video quota"></p-column> | |
18 | <p-column field="roleLabel" header="Role"></p-column> | |
19 | <p-column field="createdAt" header="Created date" [sortable]="true"></p-column> | |
cd83ea1b | 20 | <p-column styleClass="action-cell"> |
e600e1fe | 21 | <ng-template pTemplate="body" let-user="rowData"> |
cd83ea1b C |
22 | <my-edit-button [routerLink]="getRouterUserEditLink(user)"></my-edit-button> |
23 | <my-delete-button (click)="removeUser(user)"></my-delete-button> | |
04e0fc48 C |
24 | </ng-template> |
25 | </p-column> | |
26 | </p-dataTable> |