Доболвление привязки и форматирование обедов (без логики)
This commit is contained in:
parent
04febd3ec7
commit
fcbe1b8477
@ -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()
|
||||
|
@ -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>
|
58
Hotel/HostrelHeadwaiterApp/Views/Home/FormationDinner.cshtml
Normal file
58
Hotel/HostrelHeadwaiterApp/Views/Home/FormationDinner.cshtml
Normal 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>
|
Loading…
Reference in New Issue
Block a user