Merge commit '06316e17152006aa1395930ad76efb0b86d46657' as 'frontend'
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
<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>
|
||||
Reference in New Issue
Block a user