2024-03-30 23:02:24 +04:00
|
|
|
|
@using HotelContracts.ViewModels
|
|
|
|
|
|
|
|
|
|
@model List<ConferenceBookingViewModel>
|
|
|
|
|
|
|
|
|
|
@{
|
|
|
|
|
ViewData["Title"] = "ListConferenceBookings";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
<div class="text-center">
|
|
|
|
|
<h2 class="display-4">Список бронирований по конференциям</h2>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<section class="u-clearfix u-section-1" id="sec-e38b">
|
|
|
|
|
<div class="u-clearfix u-sheet u-sheet-1">
|
|
|
|
|
<div class="u-container-style u-layout-cell u-size-48 u-layout-cell-1">
|
|
|
|
|
<div class="u-container-layout u-container-layout-1">
|
|
|
|
|
<div class="u-container-layout u-container-layout-2">
|
|
|
|
|
<a asp-area="" asp-controller="Home" asp-action="CreateConferenceBooking"
|
|
|
|
|
class="btn btn-outline-dark mr-2">Добавить</a>
|
|
|
|
|
|
|
|
|
|
<a asp-area="" asp-controller="Home" asp-action="UpdateConferenceBooking"
|
|
|
|
|
class="btn btn-outline-dark mr-2">Изменить</a>
|
|
|
|
|
|
|
|
|
|
<a asp-area="" asp-controller="Home" asp-action="DeleteConferenceBooking"
|
|
|
|
|
class="btn btn-outline-dark mr-2">Удалить</a>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
<div class="u-table u-table-responsive u-table-1">
|
|
|
|
|
<table class="table">
|
|
|
|
|
<thead class="thead-dark">
|
|
|
|
|
<tr style="height: 31px">
|
|
|
|
|
<th class="u-border-1 u-border-grey-50 u-table-cell">
|
|
|
|
|
Номер
|
|
|
|
|
</th>
|
|
|
|
|
<th class="u-border-1 u-border-grey-50 u-table-cell">
|
2024-05-01 17:07:23 +04:00
|
|
|
|
Название помещения
|
2024-03-30 23:02:24 +04:00
|
|
|
|
</th>
|
|
|
|
|
<th class="u-border-1 u-border-grey-50 u-table-cell">
|
|
|
|
|
Название конференций
|
|
|
|
|
</th>
|
|
|
|
|
</tr>
|
|
|
|
|
</thead>
|
|
|
|
|
<tbody class="u-table-body">
|
|
|
|
|
@foreach (var item in Model)
|
|
|
|
|
{
|
|
|
|
|
<tr style="height: 75px">
|
|
|
|
|
<td class="u-border-1 u-border-grey-40 u-border-no-left u-border-no-right u-table-cell">
|
|
|
|
|
@Html.DisplayFor(modelItem => item.Id)
|
|
|
|
|
</td>
|
|
|
|
|
<td class="u-border-1 u-border-grey-40 u-border-no-left u-border-no-right u-table-cell">
|
|
|
|
|
@Html.DisplayFor(modelItem => item.NameHall)
|
|
|
|
|
</td>
|
|
|
|
|
@if (item.ConferenceId == null)
|
|
|
|
|
{
|
|
|
|
|
<td class="u-border-1 u-border-grey-40 u-border-no-left u-border-no-right u-table-cell">
|
2024-05-01 17:07:23 +04:00
|
|
|
|
Вакантно
|
2024-03-30 23:02:24 +04:00
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
<td class="u-border-1 u-border-grey-40 u-border-no-left u-border-no-right u-table-cell">
|
|
|
|
|
@Html.DisplayFor(modelItem => item.ConfName)
|
|
|
|
|
</td>
|
|
|
|
|
}
|
|
|
|
|
</tr>
|
|
|
|
|
}
|
|
|
|
|
</tbody>
|
|
|
|
|
</table>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</section>
|
|
|
|
|
|
|
|
|
|
<style>
|
|
|
|
|
.btn-group > .btn {
|
|
|
|
|
margin-right: 10px;
|
|
|
|
|
}
|
|
|
|
|
</style>
|