58 lines
1.5 KiB
Plaintext
58 lines
1.5 KiB
Plaintext
@using AbstractLawFirmContracts.ViewModels
|
|
@model List<ShopViewModel>
|
|
@{
|
|
ViewData["Title"] = "Home Page";
|
|
}
|
|
<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 class="text-decoration-none me-3 text-black h5" asp-action="Create">Создать магазин</a>
|
|
<a class="text-decoration-none me-3 text-black h5" asp-action="Update">Изменить магазин</a>
|
|
<a class="text-decoration-none me-3 text-black h5" asp-action="Supply">Пополнить магазин</a>
|
|
<a class="text-decoration-none text-black h5" asp-action="Delete">Удалить магазин</a>
|
|
</p>
|
|
|
|
<table class="table">
|
|
<thead>
|
|
<tr>
|
|
<th>Номер</th>
|
|
<th>Название</th>
|
|
<th>Адрес</th>
|
|
<th>Дата открытия</th>
|
|
<th>Макс. док-ов</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@foreach (var shop in Model)
|
|
{
|
|
<tr>
|
|
<td>
|
|
@Html.DisplayFor(modelItem => shop.Id)
|
|
</td>
|
|
<td>
|
|
@Html.DisplayFor(modelItem => shop.ShopName)
|
|
</td>
|
|
<td>
|
|
@Html.DisplayFor(modelItem => shop.Address)
|
|
</td>
|
|
<td>
|
|
@Html.DisplayFor(modelItem => shop.OpeningDate)
|
|
</td>
|
|
<td>
|
|
@Html.DisplayFor(modelItem => shop.MaxCountDocuments)
|
|
</td>
|
|
</tr>
|
|
}
|
|
</tbody>
|
|
</table>
|
|
}
|
|
</div>
|