24 lines
758 B
HTML
24 lines
758 B
HTML
<mat-dialog-content>
|
|
<form (ngSubmit)="send()" [formGroup]="form">
|
|
<mat-form-field>
|
|
<mat-label>Sala</mat-label>
|
|
<mat-select formControlName="room" required>
|
|
@for (item of rooms; track $index) {
|
|
<mat-option [value]="item">{{item}}</mat-option>
|
|
}
|
|
</mat-select>
|
|
@if (form.controls['room'].hasError('required')) {
|
|
<mat-error>Wymagane</mat-error>
|
|
}
|
|
</mat-form-field>
|
|
<mat-form-field>
|
|
<mat-label>Wypożyczający</mat-label>
|
|
<app-user-search formControlName="user" required/>
|
|
@if (form.controls['user'].hasError('required')) {
|
|
<mat-error>Wymagane</mat-error>
|
|
}
|
|
</mat-form-field>
|
|
<button mat-button>Wyślij</button>
|
|
</form>
|
|
</mat-dialog-content>
|