71 lines
1.4 KiB
Plaintext
71 lines
1.4 KiB
Plaintext
@using CarRepairShopContracts.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 asp-action="Create">Создать магазин</a>
|
|
<a asp-action="Update">Обновить магазин</a>
|
|
<a asp-action="Delete">Удалить магазин</a>
|
|
<a asp-action="MakeSupply">Пополнить магазин</a>
|
|
</p>
|
|
<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.ShopName)
|
|
</td>
|
|
<td>
|
|
@Html.DisplayFor(modelItem =>
|
|
item.Address)
|
|
</td>
|
|
<td>
|
|
@Html.DisplayFor(modelItem =>
|
|
item.DateOpen)
|
|
</td>
|
|
<td>
|
|
@Html.DisplayFor(modelItem =>
|
|
item.MaxCapacity)
|
|
</td>
|
|
</tr>
|
|
}
|
|
</tbody>
|
|
</table>
|
|
}
|
|
</div> |