]>
Commit | Line | Data |
---|---|---|
1 | <div class="admin-sub-header"> | |
2 | <div class="admin-sub-title">Users list</div> | |
3 | ||
4 | <a class="add-button" routerLink="/admin/users/add"> | |
5 | <span class="icon icon-add"></span> | |
6 | Add user | |
7 | </a> | |
8 | </div> | |
9 | ||
10 | <p-dataTable | |
11 | [value]="users" [lazy]="true" [paginator]="true" [totalRecords]="totalRecords" [rows]="rowsPerPage" | |
12 | sortField="id" (onLazyLoad)="loadLazy($event)" | |
13 | > | |
14 | <p-column field="id" header="ID" [sortable]="true" [style]="{ width: '60px' }"></p-column> | |
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> | |
20 | <p-column styleClass="action-cell"> | |
21 | <ng-template pTemplate="body" let-user="rowData"> | |
22 | <my-edit-button [routerLink]="getRouterUserEditLink(user)"></my-edit-button> | |
23 | <my-delete-button (click)="removeUser(user)"></my-delete-button> | |
24 | </ng-template> | |
25 | </p-column> | |
26 | </p-dataTable> |