22 lines
747 B
HTML
22 lines
747 B
HTML
<h2>Enter Recipe</h2>
|
|
<form [formGroup]="recipeFormGroup" (submit)="onSubmit($event)">
|
|
<mat-form-field>
|
|
<mat-label>Title</mat-label>
|
|
<input matInput [formControl]="recipeFormGroup.controls.title" />
|
|
</mat-form-field>
|
|
<mat-form-field>
|
|
<mat-label>Slug</mat-label>
|
|
<input matInput [formControl]="recipeFormGroup.controls.slug" />
|
|
</mat-form-field>
|
|
<mat-form-field>
|
|
<mat-label>Recipe Text</mat-label>
|
|
<textarea
|
|
#recipeTextTextarea
|
|
matInput
|
|
[formControl]="recipeFormGroup.controls.text"
|
|
(input)="onRecipeTextChange($event)"
|
|
></textarea>
|
|
</mat-form-field>
|
|
<button matButton="filled" type="submit">Review</button>
|
|
</form>
|