2023-05-20 00:18:48 +04:00
|
|
|
@using CanteenContracts.View;
|
|
|
|
@{
|
|
|
|
ViewData["Title"] = "LunchAddOrders";
|
|
|
|
}
|
|
|
|
<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="selectedLunch" name="selectedLunch">
|
2023-06-21 14:52:08 +04:00
|
|
|
@foreach (var Lunch in ViewBag.LunchList)
|
2023-05-20 00:18:48 +04:00
|
|
|
{
|
|
|
|
<option value="@Lunch.Id">@Lunch.LunchName</option>
|
|
|
|
}
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-4">Заказ:</div>
|
|
|
|
<div class="col-8">
|
|
|
|
<select name="selectedOrder">
|
2023-06-21 14:52:08 +04:00
|
|
|
@foreach (var order in ViewBag.OrderList)
|
2023-05-20 00:18:48 +04:00
|
|
|
{
|
|
|
|
<option value="@order.Id">@order.Id</option>
|
|
|
|
}
|
|
|
|
</select>
|
|
|
|
</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>
|