42 lines
1.2 KiB
Plaintext
42 lines
1.2 KiB
Plaintext
@using CanteenContracts.View;
|
|
@{
|
|
ViewData["Title"] = "OrderAddCooks";
|
|
}
|
|
<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 id="selectedCook" name="selectedCook">
|
|
@foreach (var Cook in ViewBag.CookList as List<CookViewModel>)
|
|
{
|
|
<option value="@Cook.Id">@Cook.FIO</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> |