37 lines
1.3 KiB
HTML
37 lines
1.3 KiB
HTML
<h1 mat-dialog-title>Edit Issue Entry</h1>
|
|
<div mat-dialog-content>
|
|
<form [formGroup]="form">
|
|
<div class="flex flex-row justify-around content-start items-start sm:max-lg:flex-col">
|
|
<mat-form-field class="flex-auto basis-2/3 mr-5">
|
|
<mat-label>Product</mat-label>
|
|
<input
|
|
type="text"
|
|
matInput
|
|
#batchElement
|
|
[matAutocomplete]="autoB"
|
|
formControlName="batch"
|
|
autocomplete="off"
|
|
/>
|
|
<mat-autocomplete
|
|
#autoB="matAutocomplete"
|
|
autoActiveFirstOption
|
|
[displayWith]="displayFn"
|
|
(optionSelected)="batchSelected($event)"
|
|
>
|
|
@for (batch of batches | async; track batch) {
|
|
<mat-option [value]="batch">{{ batch.name }}</mat-option>
|
|
}
|
|
</mat-autocomplete>
|
|
</mat-form-field>
|
|
<mat-form-field class="flex-auto basis-1/3">
|
|
<mat-label>Quantity</mat-label>
|
|
<input type="text" matInput formControlName="quantity" autocomplete="off" />
|
|
</mat-form-field>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
<div mat-dialog-actions>
|
|
<button mat-raised-button color="warn" [mat-dialog-close]="false" cdkFocusInitial class="mr-5">Cancel</button>
|
|
<button mat-raised-button color="primary" (click)="accept()">Ok</button>
|
|
</div>
|