47 lines
1.6 KiB
Plaintext
47 lines
1.6 KiB
Plaintext
@model UTB.Eshop.Web.Models.Entity.OrderItem
|
|
|
|
@{
|
|
ViewData["Title"] = "Create";
|
|
}
|
|
|
|
<h1>Create</h1>
|
|
|
|
<h4>OrderItem</h4>
|
|
<hr />
|
|
<div class="row">
|
|
<div class="col-md-4">
|
|
<form asp-action="Create">
|
|
<div asp-validation-summary="ModelOnly" class="text-danger"></div>
|
|
<div class="form-group">
|
|
<label asp-for="OrderID" class="control-label"></label>
|
|
<select asp-for="OrderID" class ="form-control" asp-items="ViewBag.OrderID"></select>
|
|
</div>
|
|
<div class="form-group">
|
|
<label asp-for="ProductID" class="control-label"></label>
|
|
<select asp-for="ProductID" class ="form-control" asp-items="ViewBag.ProductID"></select>
|
|
</div>
|
|
<div class="form-group">
|
|
<label asp-for="Amount" class="control-label"></label>
|
|
<input asp-for="Amount" class="form-control" />
|
|
<span asp-validation-for="Amount" class="text-danger"></span>
|
|
</div>
|
|
<div class="form-group">
|
|
<label asp-for="Price" class="control-label"></label>
|
|
<input asp-for="Price" class="form-control" />
|
|
<span asp-validation-for="Price" class="text-danger"></span>
|
|
</div>
|
|
<div class="form-group">
|
|
<input type="submit" value="Create" class="btn btn-primary" />
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
|
|
<div>
|
|
<a asp-action="Index">Back to List</a>
|
|
</div>
|
|
|
|
@section Scripts {
|
|
@{await Html.RenderPartialAsync("_ValidationScriptsPartial");}
|
|
}
|