55 lines
931 B
Plaintext
55 lines
931 B
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>
|
|
</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>
|
|
}
|
|
</div> |