2018-02-01 15:04:36 +01:00
|
|
|
|
<div class="container-fluid">
|
|
|
|
|
<h3>{{'USERS.LISTING.TITLE' | translate}}</h3>
|
|
|
|
|
|
2018-10-05 17:00:54 +02:00
|
|
|
|
<app-users-criteria-component></app-users-criteria-component>
|
2018-02-01 15:04:36 +01:00
|
|
|
|
<mat-card class="mat-card">
|
|
|
|
|
<mat-progress-bar *ngIf="dataSource?.isLoadingResults" mode="query"></mat-progress-bar>
|
|
|
|
|
|
|
|
|
|
<mat-table [dataSource]="dataSource" matSort>
|
|
|
|
|
|
|
|
|
|
<!-- Column Definition: Label -->
|
|
|
|
|
<ng-container cdkColumnDef="name">
|
|
|
|
|
<mat-header-cell *matHeaderCellDef>{{'USERS.LISTING.LABEL' | translate}}</mat-header-cell>
|
|
|
|
|
<mat-cell *matCellDef="let row">{{row.name}}</mat-cell>
|
|
|
|
|
</ng-container>
|
|
|
|
|
|
2018-03-06 15:58:38 +01:00
|
|
|
|
<ng-container cdkColumnDef="email">
|
|
|
|
|
<mat-header-cell *matHeaderCellDef>{{'USERS.LISTING.EMAIL' | translate}}</mat-header-cell>
|
|
|
|
|
<mat-cell *matCellDef="let row">{{row.email}}</mat-cell>
|
|
|
|
|
</ng-container>
|
|
|
|
|
|
|
|
|
|
<ng-container cdkColumnDef="lastloggedin">
|
|
|
|
|
<mat-header-cell *matHeaderCellDef>{{'USERS.LISTING.LAST-LOGGED-IN' | translate}}</mat-header-cell>
|
|
|
|
|
<mat-cell *matCellDef="let row">{{row.lastloggedin | date:'shortDate'}}</mat-cell>
|
|
|
|
|
</ng-container>
|
|
|
|
|
|
2018-02-01 15:04:36 +01:00
|
|
|
|
<!-- Column Definition: Roles -->
|
|
|
|
|
<ng-container cdkColumnDef="roles">
|
|
|
|
|
<mat-header-cell *matHeaderCellDef>{{'USERS.LISTING.ROLES' | translate}}</mat-header-cell>
|
|
|
|
|
<mat-cell *matCellDef="let row">
|
2018-10-05 17:00:54 +02:00
|
|
|
|
<app-user-role-editor-component [item]="row"></app-user-role-editor-component>
|
2018-02-01 15:04:36 +01:00
|
|
|
|
</mat-cell>
|
|
|
|
|
</ng-container>
|
|
|
|
|
|
|
|
|
|
<mat-header-row *matHeaderRowDef="displayedColumns"></mat-header-row>
|
|
|
|
|
<mat-row *matRowDef="let row; columns: displayedColumns"></mat-row>
|
|
|
|
|
|
|
|
|
|
</mat-table>
|
2018-10-05 17:00:54 +02:00
|
|
|
|
<mat-paginator #paginator [length]="dataSource?.totalCount" [pageSizeOptions]="[10, 25, 100]">
|
2018-02-01 15:04:36 +01:00
|
|
|
|
</mat-paginator>
|
|
|
|
|
</mat-card>
|
2018-10-02 16:33:58 +02:00
|
|
|
|
</div>
|