62 lines
1.0 KiB
Plaintext

@using SchoolContracts.ViewModels;
@model List<CircleViewModel>
@{
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>
</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.DateStart)
</td>
<td>
@Html.DisplayFor(modelItem => item.Remains)
</td>
<td>
@Html.DisplayFor(modelItem => item.ClientId)
</td>
</tr>
}
</tbody>
</table>
}
</div>