43 lines
1.4 KiB
Plaintext
43 lines
1.4 KiB
Plaintext
@model UTB.Eshop.Web.Models.Entity.Order
|
|
|
|
@{
|
|
ViewData["Title"] = "Create";
|
|
}
|
|
|
|
<h1>Create</h1>
|
|
|
|
<h4>Order</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="OrderNumber" class="control-label"></label>
|
|
<input asp-for="OrderNumber" class="form-control" />
|
|
<span asp-validation-for="OrderNumber" class="text-danger"></span>
|
|
</div>
|
|
<div class="form-group">
|
|
<label asp-for="TotalPrice" class="control-label"></label>
|
|
<input asp-for="TotalPrice" class="form-control" />
|
|
<span asp-validation-for="TotalPrice" class="text-danger"></span>
|
|
</div>
|
|
<div class="form-group">
|
|
<label asp-for="UserId" class="control-label"></label>
|
|
<select asp-for="UserId" class ="form-control" asp-items="ViewBag.UserId"></select>
|
|
</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");}
|
|
}
|