Printing of reports done. Main section is now a fixture User and Devices list gives last login details.
58 lines
1.8 KiB
HTML
58 lines
1.8 KiB
HTML
<div fxLayout="row" fxFlex="50%" fxLayoutAlign="space-around center" class="example-card">
|
|
<mat-card fxFlex>
|
|
<mat-card-title-group>
|
|
<mat-card-title>Device</mat-card-title>
|
|
</mat-card-title-group>
|
|
<mat-card-content>
|
|
<form [formGroup]="form" fxLayout="column">
|
|
<div
|
|
fxLayout="row"
|
|
fxLayoutAlign="space-around start"
|
|
fxLayout.lt-md="column"
|
|
fxLayoutGap="20px"
|
|
fxLayoutGap.lt-md="0px"
|
|
>
|
|
<mat-form-field fxFlex>
|
|
<mat-label>Name</mat-label>
|
|
<input
|
|
matInput
|
|
#nameElement
|
|
placeholder="Name"
|
|
formControlName="name"
|
|
(keyup.enter)="save()"
|
|
/>
|
|
</mat-form-field>
|
|
</div>
|
|
<div
|
|
fxLayout="row"
|
|
fxLayoutAlign="space-around start"
|
|
fxLayout.lt-md="column"
|
|
fxLayoutGap="20px"
|
|
fxLayoutGap.lt-md="0px"
|
|
>
|
|
<mat-form-field fxFlex>
|
|
<mat-label>Section</mat-label>
|
|
<mat-select placeholder="Section" formControlName="section">
|
|
<mat-option *ngFor="let s of sections" [value]="s.id">
|
|
{{ s.name }}
|
|
</mat-option>
|
|
</mat-select>
|
|
</mat-form-field>
|
|
</div>
|
|
<div fxLayout="row">
|
|
<mat-checkbox formControlName="enabled">Enabled?</mat-checkbox>
|
|
</div>
|
|
</form>
|
|
</mat-card-content>
|
|
<mat-card-actions>
|
|
<button mat-raised-button color="primary" (click)="save()">Save</button>
|
|
<button mat-raised-button color="warn" (click)="confirmDelete()" *ngIf="!!item.id">
|
|
Delete
|
|
</button>
|
|
</mat-card-actions>
|
|
<mat-card-subtitle>
|
|
Created on <strong>{{ item.creationDate | localTime }}</strong>
|
|
</mat-card-subtitle>
|
|
</mat-card>
|
|
</div>
|