PIbd-21_BatylkinaAO_MusoevD.../Canteen/CanteenManagerApp/Views/Home/Cooks.cshtml

34 lines
1.4 KiB
Plaintext
Raw Normal View History

2023-04-09 19:05:54 +04:00
@{
ViewData["Title"] = "Cooks";
}
<body>
<div class="container">
<h2>Список поваров</h2>
<button type="button" class="btn btn-info" onclick="location.href='@Url.Action("CreateCook", "Home")'">Добавить повара</button>
<button type="button" class="btn btn-danger" onclick="location.href='@Url.Action("CreateCook", "Home")'">Удалить повара</button>
<button type="button" class="btn btn-warning" onclick="location.href='@Url.Action("CreateCook", "Home")'">Обновить повара</button>
<table class="table">
<thead>
<tr>
<th>Выбрать</th>
<th>Номер</th>
<th>ФИО</th>
<th>Должность</th>
<th>Менеджер</th>
</tr>
</thead>
<tbody>
@foreach (var cook in ViewBag.Cooks)
{
<tr>
<td><input type="radio" name="selectedProducts" value="@cook.Id" /></td>
<td>@cook.Id</td>
<td>@cook.FIO</td>
<td>@cook.Position</td>
<td>@cook.ManagerId</td>
</tr>
}
</tbody>
</table>
</div>
</body>