42 lines
1.2 KiB
Plaintext
42 lines
1.2 KiB
Plaintext
|
@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">
|
||
|
@foreach (var Lunch in ViewBag.LunchList as List<LunchViewModel>)
|
||
|
{
|
||
|
<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">
|
||
|
@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-8"></div>
|
||
|
<div class="col-4">
|
||
|
<input type="submit" value="Добавить" class="btn btn-primary" />
|
||
|
</div>
|
||
|
</div>
|
||
|
</form>
|