61 lines
1.7 KiB
Plaintext
Raw Normal View History

2024-05-01 20:09:54 +04:00
@using BankContracts.ViewModels.Client.ViewModels
@model List<CardViewModel>
@{
2024-05-28 17:20:48 +04:00
ViewData["Title"] = "Cписок банковских карт";
2024-05-01 20:09:54 +04:00
}
<div class="text-center">
2024-05-28 17:20:48 +04:00
<h1 class="display-4">Банковские карты</h1>
2024-05-01 20:09:54 +04:00
</div>
<div class="text-center">
2024-05-28 17:20:48 +04:00
@{
<p>
<a asp-action="CreateCard">Оформить банковскую карту</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.Number)
</td>
<td>
@Html.DisplayFor(modelItem => item.ClientSurname)
</td>
<td>
@Html.DisplayFor(modelItem => item.Balance)
</td>
<td>
@Html.DisplayFor(modelItem => item.Period)
</td>
</tr>
}
</tbody>
</table>
}
2024-05-01 20:09:54 +04:00
</div>