|
|
|
@ -17,15 +17,15 @@
|
|
|
|
|
<mat-label>Image</mat-label>
|
|
|
|
|
<input matInput type="text" placeholder="No file chosen" [value]="filename" readonly>
|
|
|
|
|
<input type="file" formControlName="image" (change)="onFileChange($event)" hidden #fileInput>
|
|
|
|
|
<button mat-stroked-button type="button" (click)="fileInput.click()">Browse</button>
|
|
|
|
|
<button mat-stroked-button type="button" timeout (click)="fileInput.click()">Browse</button>
|
|
|
|
|
</mat-form-field>
|
|
|
|
|
</p>
|
|
|
|
|
|
|
|
|
|
<div formArrayName="ingredients">
|
|
|
|
|
<h3>Ingredients</h3>
|
|
|
|
|
<h3>{{ 'recipe.ingredients' | transloco }}</h3>
|
|
|
|
|
<div *ngFor="let ingredient of ingredients.controls; let i = index" [formGroupName]="i" class="form-row">
|
|
|
|
|
<mat-form-field>
|
|
|
|
|
<mat-label>Ingredient</mat-label>
|
|
|
|
|
<mat-label>{{ 'recipe.ingredients' | transloco }}</mat-label>
|
|
|
|
|
<mat-select formControlName="name">
|
|
|
|
|
@for (ingredient of ingredientsOptions; track ingredient) {
|
|
|
|
|
<mat-option [value]="ingredient">{{ ingredient }}</mat-option>
|
|
|
|
|