83 lines
2.5 KiB
Plaintext
83 lines
2.5 KiB
Plaintext
@using HotelContracts.ViewModels
|
|
|
|
@model List<ConferenceViewModel>
|
|
|
|
@{
|
|
ViewData["Title"] = "Conferences";
|
|
}
|
|
|
|
<head>
|
|
<style>
|
|
.general_style {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.button_action {
|
|
display: flex;
|
|
background-color: #5a9ad6;
|
|
}
|
|
|
|
.button_action:hover {
|
|
background-color: #225df2;
|
|
color: white;
|
|
}
|
|
</style>
|
|
</head>
|
|
<div class="text-center">
|
|
<h2 class="u-text u-text-custom-color-1 u-text-default u-text-1">Список конференций</h2>
|
|
</div>
|
|
<section method="post">
|
|
<div class="main">
|
|
<table class="table">
|
|
<thead>
|
|
<tr>
|
|
<th>
|
|
Id
|
|
</th>
|
|
<th>
|
|
Название конференции
|
|
</th>
|
|
<th>
|
|
Тематика конференции
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@foreach (var item in Model)
|
|
{
|
|
<tr style="height: 75px">
|
|
<td>
|
|
@Html.DisplayFor(modelItem => item.Id)
|
|
</td>
|
|
<td>
|
|
@Html.DisplayFor(modelItem => item.ConferenceName)
|
|
</td>
|
|
<td>
|
|
@Html.DisplayFor(modelItem => item.Subject)
|
|
</td>
|
|
<td>
|
|
@Html.DisplayFor(modelItem => item.StartDate)
|
|
</td>
|
|
</tr>
|
|
}
|
|
</tbody>
|
|
</table>
|
|
<div class="general_style">
|
|
<div class="button">
|
|
<a asp-area="" asp-controller="Home" asp-action="CreateConference"
|
|
class="btn button_action">Добавить</a>
|
|
</div>
|
|
<div class="button">
|
|
<a asp-area="" asp-controller="Home" asp-action="UpdateConference"
|
|
class="btn button_action">Изменить</a>
|
|
</div>
|
|
<div class="button">
|
|
<a asp-area="" asp-controller="Home" asp-action="DeleteConference"
|
|
class="btn button_action">Удалить</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
|