2019-06-13 19:02:34 +00:00
|
|
|
<mat-card>
|
|
|
|
<mat-card-title-group>
|
|
|
|
<mat-card-title>Users</mat-card-title>
|
|
|
|
<a mat-button [routerLink]="['/users', 'new']">
|
|
|
|
<mat-icon>add_box</mat-icon>
|
|
|
|
Add
|
|
|
|
</a>
|
|
|
|
</mat-card-title-group>
|
|
|
|
<mat-card-content>
|
2019-06-19 18:47:44 +00:00
|
|
|
<mat-table #table [dataSource]="dataSource" aria-label="Elements">
|
2019-06-13 19:02:34 +00:00
|
|
|
<!-- Name Column -->
|
|
|
|
<ng-container matColumnDef="name">
|
2019-06-19 18:47:44 +00:00
|
|
|
<mat-header-cell *matHeaderCellDef>Name</mat-header-cell>
|
2020-10-11 05:26:29 +00:00
|
|
|
<mat-cell *matCellDef="let row"
|
|
|
|
><a [routerLink]="['/users', row.id]">{{ row.name }}</a></mat-cell
|
|
|
|
>
|
2019-06-13 19:02:34 +00:00
|
|
|
</ng-container>
|
|
|
|
|
|
|
|
<!-- Locked Out Column -->
|
|
|
|
<ng-container matColumnDef="lockedOut">
|
2019-06-19 18:47:44 +00:00
|
|
|
<mat-header-cell *matHeaderCellDef>Is Locked Out?</mat-header-cell>
|
2020-10-11 05:26:29 +00:00
|
|
|
<mat-cell *matCellDef="let row">{{ row.lockedOut }}</mat-cell>
|
2019-06-13 19:02:34 +00:00
|
|
|
</ng-container>
|
|
|
|
|
|
|
|
<!-- Groups Column -->
|
|
|
|
<ng-container matColumnDef="roles">
|
|
|
|
<mat-header-cell *matHeaderCellDef>Roles</mat-header-cell>
|
|
|
|
<mat-cell *matCellDef="let row">
|
|
|
|
<ul>
|
2020-10-11 05:26:29 +00:00
|
|
|
<li *ngFor="let role of row.roles">{{ role }}</li>
|
2019-06-13 19:02:34 +00:00
|
|
|
</ul>
|
|
|
|
</mat-cell>
|
|
|
|
</ng-container>
|
|
|
|
|
2020-10-27 11:29:24 +00:00
|
|
|
<!-- Last Login Column -->
|
|
|
|
<ng-container matColumnDef="last">
|
|
|
|
<mat-header-cell *matHeaderCellDef>Last Login</mat-header-cell>
|
|
|
|
<mat-cell *matCellDef="let row"
|
|
|
|
>{{ row.lastDevice }} @
|
|
|
|
{{ row.lastDate ? (row.lastDate | localTime) : 'Never' }}</mat-cell
|
|
|
|
>
|
|
|
|
</ng-container>
|
|
|
|
|
2019-06-13 19:02:34 +00:00
|
|
|
<mat-header-row *matHeaderRowDef="displayedColumns"></mat-header-row>
|
2020-10-11 05:26:29 +00:00
|
|
|
<mat-row *matRowDef="let row; columns: displayedColumns"></mat-row>
|
2019-06-13 19:02:34 +00:00
|
|
|
</mat-table>
|
|
|
|
</mat-card-content>
|
|
|
|
</mat-card>
|