30 lines
1.1 KiB
Plaintext
30 lines
1.1 KiB
Plaintext
@{
|
|
ViewData["Title"] = "Add or Create Ingredient to Recipe";
|
|
}
|
|
|
|
<h2>@ViewData["Title"]</h2>
|
|
|
|
<form asp-action="AddOrCreateIngredient" method="post">
|
|
<div class="form-group">
|
|
<label for="RecipeId" class="control-label">Recipe Id</label>
|
|
<input type="text" id="RecipeId" name="recipeId" class="form-control" />
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="IngredientName" class="control-label">Ingredient Name</label>
|
|
<input type="text" id="IngredientName" name="ingredientName" class="form-control" />
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="Quantity" class="control-label">Quantity</label>
|
|
<input type="number" id="Quantity" name="quantity" class="form-control" />
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="UnitId" class="control-label">Unit</label>
|
|
<select id="UnitId" name="unitId" class="form-control" asp-items="ViewBag.Units"></select>
|
|
</div>
|
|
<button type="submit" class="btn btn-primary">Add Ingredient</button>
|
|
</form>
|
|
|
|
@section Scripts {
|
|
<partial name="_ValidationScriptsPartial" />
|
|
}
|