CourseWork_BankYouBankrupt/BankYouBankrupt/BankYouBankruptClientApp/Views/Home/CardsList.cshtml

55 lines
958 B
Plaintext
Raw Normal View History

2023-05-18 17:56:47 +04:00
@using BankYouBankruptContracts.ViewModels.Client.Default
2023-05-16 20:05:59 +04:00
2023-05-17 01:00:04 +04:00
@model List<CardViewModel>
2023-05-16 20:05:59 +04:00
@{
ViewData["Title"] = "Список карт";
}
<div class="text-center">
2023-05-17 01:00:04 +04:00
<h1 class="display-4">Карты</h1>
</div>
2023-05-16 20:05:59 +04:00
<div class="text-center">
@{
if (Model == null)
{
<h3 class="display-4">Сначала авторизируйтесь</h3>
return;
}
<p>
2023-05-17 01:00:04 +04:00
<a asp-action="CreateCard">Создать карту</a>
2023-05-16 20:05:59 +04:00
</p>
2023-05-17 01:00:04 +04:00
<table class="table">
<thead>
<tr>
<th>
Номер счёта
</th>
<th>
CVC
</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.Period)
</td>
</tr>
}
</tbody>
</table>
2023-05-16 20:05:59 +04:00
}
</div>