CourseWork_CompShop/ComputerShopProvider/OrdererClientApp/Views/Home/Order.cshtml

73 lines
1.2 KiB
Plaintext
Raw Normal View History

2023-05-19 18:26:38 +04:00
@using ComputerShopContracts.ViewModels
@model List<OrderViewModel>
@{
ViewData["Title"] = "Order";
}
<div class="text-center">
<h1 class="display-4">Заказы</h1>
</div>
<div class="text-center">
@{
if (Model == null)
{
<h3 class="display-4">Авторизируйтесь</h3>
return;
}
<p>
2023-12-02 01:30:33 +04:00
<a asp-action="CreateOrder">Создать заказ</a>
2023-05-19 18:26:38 +04:00
</p>
<p>
2023-12-02 01:30:33 +04:00
<a asp-action="AddAssemblyToOrder">Добавить сборки к заказу</a>
2023-05-19 18:26:38 +04:00
</p>
2023-12-02 01:30:33 +04:00
2023-05-19 18:26:38 +04:00
<table class="table">
<thead>
<tr>
<th>
Номер
</th>
<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.Sum)
</td>
<td>
@Html.DisplayFor(modelItem => item.Status)
2023-12-02 01:30:33 +04:00
</td>
2023-05-19 18:26:38 +04:00
<td>
@Html.DisplayFor(modelItem => item.DateCreate)
2023-12-02 01:30:33 +04:00
</td>
2023-05-19 18:26:38 +04:00
<td>
@Html.DisplayFor(modelItem => item.DateImplement)
</td>
</tr>
}
</tbody>
</table>
}
</div>