CourseWork_CompShop/ComputerShopProvider/OrdererClientApp/Views/Home/Supply.cshtml
2023-05-19 18:26:38 +04:00

63 lines
1.0 KiB
Plaintext

@using ComputerShopContracts.ViewModels
@model List<SupplyViewModel>
@{
ViewData["Title"] = "Supply";
}
<div class="text-center">
<h1 class="display-4">Поставка</h1>
</div>
<div class="text-center">
@{
if (Model == null)
{
<h3 class="display-4">Авторизируйтесь</h3>
return;
}
<p>
<a asp-action="CreateSupply">Создать поставку</a>
</p>
<table class="table">
<thead>
<tr>
<th>
Номер
</th>
<th>
Статус
</th>
<th>
Дата создания
</th>
<th>
Дата поставки
</th>
</tr>
</thead>
<tbody>
@foreach (var item in Model)
{
<tr>
<td>
@Html.DisplayFor(modelItem => item.Id)
</td>
<td>
@Html.DisplayFor(modelItem => item.Status)
</td>
<td>
@Html.DisplayFor(modelItem => item.DateCreate)
</td>
<td>
@Html.DisplayFor(modelItem => item.DateImplement)
</td>
</tr>
}
</tbody>
</table>
}
</div>