61 lines
1.0 KiB
Plaintext
61 lines
1.0 KiB
Plaintext
@using BankYouBankruptContracts.ViewModels
|
|
|
|
@model List<CardViewModel>
|
|
|
|
@{
|
|
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="CreateCard">Создать карту</a>
|
|
</p>
|
|
<table class="table">
|
|
<thead>
|
|
<tr>
|
|
<th>
|
|
Номер счёта
|
|
</th>
|
|
<th>
|
|
CVC
|
|
</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.CVC)
|
|
</td>
|
|
<td>
|
|
@Html.DisplayFor(modelItem => item.ClientSurname)
|
|
</td>
|
|
<td>
|
|
@Html.DisplayFor(modelItem => item.Period)
|
|
</td>
|
|
</tr>
|
|
}
|
|
</tbody>
|
|
</table>
|
|
}
|
|
</div> |