34 lines
1.4 KiB
Plaintext
34 lines
1.4 KiB
Plaintext
@{
|
|
ViewData["Title"] = "Orders";
|
|
}
|
|
<body>
|
|
<div class="container">
|
|
<h2>Список обедов</h2>
|
|
<button type="button" class="btn btn-info" onclick="location.href='@Url.Action("CreateOrder", "Home")'">Добавить заказ</button>
|
|
<button type="button" class="btn btn-danger" onclick="location.href='@Url.Action("DeleteOrder", "Home")'">Удалить заказ</button>
|
|
<button type="button" class="btn btn-warning" onclick="location.href='@Url.Action("UpdateOrder", "Home")'">Обновить заказ</button>
|
|
<table class="table">
|
|
<thead>
|
|
<tr>
|
|
<th>Номер</th>
|
|
<th>Описание обеда</th>
|
|
<th>Сумма</th>
|
|
<th>Название прибора</th>
|
|
<th>Количество прибора</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@foreach (var order in ViewBag.Orders)
|
|
{
|
|
<tr>
|
|
<td>@order.Id</td>
|
|
<td>@order.Description</td>
|
|
<td>@order.Sum</td>
|
|
<td>@order.TablewareName</td>
|
|
<td>@order.CountTablewares</td>
|
|
</tr>
|
|
}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</body> |