36 lines
1.7 KiB
HTML
36 lines
1.7 KiB
HTML
<section class="mat-typography">
|
|
<mat-card class="defaultCard">
|
|
<mat-card-header>
|
|
<mat-card-title>
|
|
{{commercialPremise?.description}} {{premise?.description}}
|
|
</mat-card-title>
|
|
<mat-card-subtitle>
|
|
ID: {{commercialPremise?.id}}
|
|
</mat-card-subtitle>
|
|
</mat-card-header>
|
|
<mat-card-content>
|
|
<div>
|
|
<form (ngSubmit)="saveCommercialPremise()">
|
|
<div>
|
|
<mat-form-field appearance="outline">
|
|
<mat-label>Beschreibung</mat-label>
|
|
<input matInput name="description" [(ngModel)]="commercialPremise.description"/>
|
|
</mat-form-field>
|
|
<mat-form-field appearance="outline">
|
|
<mat-label>Haus</mat-label>
|
|
<mat-select [(ngModel)]="commercialPremise.premise" name="premise">
|
|
<mat-option *ngFor="let p of premises" [value]="p.id">{{p.description}}</mat-option>
|
|
</mat-select>
|
|
</mat-form-field>
|
|
<mat-form-field appearance="outline">
|
|
<mat-label>Fläche</mat-label>
|
|
<input type="number" matInput name="area" [(ngModel)]="commercialPremise.area"/>
|
|
</mat-form-field>
|
|
</div>
|
|
<button #submitButton type="submit" mat-raised-button color="primary">Speichern</button>
|
|
</form>
|
|
</div>
|
|
</mat-card-content>
|
|
</mat-card>
|
|
</section>
|