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

61 lines
1.0 KiB
Plaintext
Raw Normal View History

2023-05-16 20:05:59 +04:00
@using BankYouBankruptContracts.ViewModels
2023-05-17 01:00:04 +04:00
@model List<CardViewModel>
2023-05-16 20:05:59 +04:00
@{
ViewData["Title"] = "Home Page";
}
<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>
<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>
2023-05-16 20:05:59 +04:00
}
</div>