Доболвление привязки и форматирование обедов (без логики)

This commit is contained in:
Кашин Максим 2023-04-06 20:25:46 +04:00
parent 04febd3ec7
commit fcbe1b8477
3 changed files with 90 additions and 0 deletions

View File

@ -33,6 +33,17 @@ namespace HostrelHeadwaiterApp.Controllers
return View();
}
public IActionResult BindingConferenceBindingAndConference()
{
return View();
}
public IActionResult FormationDinner()
{
return View();
}
[ResponseCache(Duration = 0, Location = ResponseCacheLocation.None, NoStore = true)]
public IActionResult Error()

View File

@ -0,0 +1,21 @@
@{
ViewData["Title"] = "BindingConferenceBindingAndConference";
}
<div class="text-center">
<h2 class="display-4">Привязка брони по конфереции к конференциям</h2>
</div>
<form method="post">
<label for="validationCustom04" class="form-label">Выбранная бронь по конференции</label>
<select class="form-select" id="validationCustom04" required>
<option selected disabled value="">Сделайте выбор</option>
<option>Данные из бд*</option>
</select>
<label for="validationCustom04" class="form-label">Выбранная конференция</label>
<select class="form-select" id="validationCustom04" required>
<option selected disabled value="">Сделайте выбор</option>
<option>Данные из бд*</option>
</select>
<button type="button" class="btn btn-lg btn-primary" disabled>Привязать</button>
<button type="button" class="btn btn-secondary btn-lg" disabled>Отмена</button>
</form>

View File

@ -0,0 +1,58 @@
@using HotelContracts.ViewModels
@model List<DinnerViewModel>
@{
ViewData["Title"] = "FormationDinner";
}
<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="Create">Создать заказ</a>
</p>
<table class="table">
<thead>
<tr>
<th>
Номер
</th>
<th>
Имя
</th>
<th>
Цена
</th>
</tr>
</thead>
<tbody>
@foreach (var item in Model)
{
<tr>
<td>
@Html.DisplayFor(modelItem => item.Id)
</td>
<td>
@Html.DisplayFor(modelItem => item.DinnerName)
</td>
<td>
@Html.DisplayFor(modelItem => item.DinnetPrice)
</td>
</tr>
}
</tbody>
</table>
}
</div>