68 lines
1.2 KiB
Plaintext
68 lines
1.2 KiB
Plaintext
@using BankYouBankruptContracts.ViewModels
|
|
|
|
@model List<AccountViewModel>
|
|
|
|
@{
|
|
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>
|
|
<th>
|
|
Дата открытия
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@foreach (var item in Model)
|
|
{
|
|
<tr>
|
|
<td>
|
|
@Html.DisplayFor(modelItem => item.Id)
|
|
</td>
|
|
<td>
|
|
@Html.DisplayFor(modelItem => item.Name)
|
|
</td>
|
|
<td>
|
|
@Html.DisplayFor(modelItem => item.Patronymic)
|
|
</td>
|
|
<td>
|
|
@Html.DisplayFor(modelItem => item.Balance)
|
|
</td>
|
|
<td>
|
|
@Html.DisplayFor(modelItem => item.DateOpen)
|
|
</td>
|
|
</tr>
|
|
}
|
|
</tbody>
|
|
</table>
|
|
}
|
|
</div> |