CourseWork_Hotel/Hotel/HotelOrganiserApp/Views/Home/FormationMember.cshtml

58 lines
952 B
Plaintext
Raw Normal View History

2023-04-07 13:49:59 +04:00
@using HotelContracts.ViewModels
2023-04-07 14:03:51 +04:00
@model List<MemberViewModel>
2023-04-07 13:49:59 +04:00
@{
2023-04-07 14:03:51 +04:00
ViewData["Title"] = "FormationMember";
2023-04-07 13:49:59 +04:00
}
<div class="text-center">
2023-04-07 14:03:51 +04:00
<h1 class="display-4">Формирование участников</h1>
2023-04-07 13:49:59 +04:00
</div>
<div class="text-center">
@{
if (Model == null)
{
<h3 class="display-4">Авторизируйтесь</h3>
return;
}
<p>
2023-04-07 14:03:51 +04:00
<a asp-action="Create">Создать участника</a>
2023-04-07 13:49:59 +04:00
</p>
<table class="table">
<thead>
<tr>
<th>
Номер
</th>
<th>
2023-04-07 14:03:51 +04:00
ФИО
2023-04-07 13:49:59 +04:00
</th>
<th>
2023-04-07 14:03:51 +04:00
Гражданство
2023-04-07 13:49:59 +04:00
</th>
</tr>
</thead>
<tbody>
@foreach (var item in Model)
{
<tr>
<td>
@Html.DisplayFor(modelItem => item.Id)
</td>
<td>
2023-04-07 14:03:51 +04:00
@Html.DisplayFor(modelItem => item.MemberFIO)
2023-04-07 13:49:59 +04:00
</td>
<td>
2023-04-07 14:03:51 +04:00
@Html.DisplayFor(modelItem => item.Citizenship)
2023-04-07 13:49:59 +04:00
</td>
</tr>
}
</tbody>
</table>
}
</div>