48 lines
1.4 KiB
Plaintext
48 lines
1.4 KiB
Plaintext
@using CanteenContracts.View;
|
|
@{
|
|
ViewData["Title"] = "OrderAddTablewares";
|
|
}
|
|
<div class="text-center">
|
|
<h2 class="display-4">Привязка прибора к заказу</h2>
|
|
</div>
|
|
<style>
|
|
.row {
|
|
margin-top: 10px;
|
|
}
|
|
</style>
|
|
<form method="post">
|
|
<div class="row">
|
|
<div class="col-4">Заказ:</div>
|
|
<div class="col-8">
|
|
<select id="selectedOrder" name="selectedOrder">
|
|
@foreach (var order in ViewBag.OrderList as List<OrderViewModel>)
|
|
{
|
|
<option value="@order.Id">@order.Id</option>
|
|
}
|
|
</select>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-4">Прибор:</div>
|
|
<div class="col-8">
|
|
<select name="selectedTableware">
|
|
@foreach (var tableware in ViewBag.TablewareList as List<TablewareViewModel>)
|
|
{
|
|
<option value="@tableware.Id">@tableware.TablewareName</option>
|
|
}
|
|
</select>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-4">Количество:</div>
|
|
<div class="col-8">
|
|
<input type="text" name="count" id="count" />
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-8"></div>
|
|
<div class="col-4">
|
|
<input type="submit" value="Добавить" class="btn btn-primary" />
|
|
</div>
|
|
</div>
|
|
</form> |