59 lines
4.1 KiB
HTML
59 lines
4.1 KiB
HTML
<div class="fx-fill fx-column fx-stretch fx-mh100">
|
|
<mat-toolbar class="view-bar">
|
|
<mat-icon>devices</mat-icon>
|
|
<span>{{ res.strings('user_devices_title') }}</span>
|
|
</mat-toolbar>
|
|
<app-layout-double class="fx-fill fx-row fx-stretch">
|
|
<div id='main' class="fx-fill" >
|
|
<div class="mat-elevation-z2 m-sm">
|
|
<ng-container *ngIf="loading.getValue()">
|
|
<mat-progress-bar mode="indeterminate" color="accent"></mat-progress-bar>
|
|
</ng-container>
|
|
<mat-table #table [dataSource]="dataSource">
|
|
<ng-container matColumnDef="id">
|
|
<mat-header-cell *matHeaderCellDef [ngStyle]="getStyle('id')"> {{ res.strings('user_devices_id') }} </mat-header-cell>
|
|
<mat-cell *matCellDef="let i = index" [ngStyle]="getStyle('id')"> {{ getNumber(i) }} </mat-cell>
|
|
</ng-container>
|
|
<ng-container matColumnDef="os">
|
|
<mat-header-cell *matHeaderCellDef [ngStyle]="getStyle('os')"> {{ res.strings('user_devices_os') }} </mat-header-cell>
|
|
<mat-cell *matCellDef="let element" [ngStyle]="getStyle('os')">
|
|
<mat-icon class="icon-button">{{ element.os | osIcon }}</mat-icon>
|
|
</mat-cell>
|
|
</ng-container>
|
|
<ng-container matColumnDef="manufacturer">
|
|
<mat-header-cell *matHeaderCellDef [ngStyle]="getStyle('manufacturer')"> {{ res.strings('user_devices_manufacturer') }} </mat-header-cell>
|
|
<mat-cell class="tt-c" *matCellDef="let element" [ngStyle]="getStyle('manufacturer')"> {{ element.manufacturer }} </mat-cell>
|
|
</ng-container>
|
|
<ng-container matColumnDef="model">
|
|
<mat-header-cell *matHeaderCellDef [ngStyle]="getStyle('model')"> {{ res.strings('user_devices_model') }} </mat-header-cell>
|
|
<mat-cell class="tt-c" *matCellDef="let element" [ngStyle]="getStyle('model')"> {{ element.model }} </mat-cell>
|
|
</ng-container>
|
|
<ng-container matColumnDef="creationTime">
|
|
<mat-header-cell *matHeaderCellDef [ngStyle]="getStyle('creationTime')"> {{ res.strings('user_devices_creation') }} </mat-header-cell>
|
|
<mat-cell *matCellDef="let element" [ngStyle]="getStyle('creationTime')"> {{ element.creationTime | date:'short' }} </mat-cell>
|
|
</ng-container>
|
|
<ng-container matColumnDef="modificationTime">
|
|
<mat-header-cell *matHeaderCellDef [ngStyle]="getStyle('modificationTime')" > {{ res.strings('user_devices_modification') }} </mat-header-cell>
|
|
<mat-cell *matCellDef="let element" [ngStyle]="getStyle('modificationTime')" > {{ element.modificationTime | date:'short' }} </mat-cell>
|
|
</ng-container>
|
|
<mat-header-row *matHeaderRowDef="getColumns()"></mat-header-row>
|
|
<mat-row *matRowDef="let row; columns: getColumns();" class="clickable hov-accent" (click)="onClick(row)"></mat-row>
|
|
</mat-table>
|
|
<mat-paginator #paginator [pageSize]="20" [pageSizeOptions]="[1, 10, 20, 50]" [showFirstLastButtons]="true"></mat-paginator>
|
|
</div>
|
|
</div>
|
|
<div id='side' class="bg-gray fx-column mat-typography">
|
|
<mat-card class="mat-elevation-z2 m-sm" >
|
|
<mat-card-header>
|
|
<mat-icon mat-card-avatar class="fs-avatar">help_outline</mat-icon>
|
|
<mat-card-title>{{ res.strings('user_devices_hint_title') }}</mat-card-title>
|
|
<mat-card-subtitle>{{ res.strings('user_devices_hint_subtitle') }}</mat-card-subtitle>
|
|
</mat-card-header>
|
|
<mat-divider></mat-divider>
|
|
<mat-card-content class="fx-h100 fx-row">
|
|
<p class="pt-sm">{{ res.strings('user_devices_hint_content') }}</p>
|
|
</mat-card-content>
|
|
</mat-card>
|
|
</div>
|
|
</app-layout-double>
|
|
</div> |