diff --git a/Hotel/HostrelHeadwaiterApp/Controllers/HomeController.cs b/Hotel/HostrelHeadwaiterApp/Controllers/HomeController.cs index 1471168..c5ff2aa 100644 --- a/Hotel/HostrelHeadwaiterApp/Controllers/HomeController.cs +++ b/Hotel/HostrelHeadwaiterApp/Controllers/HomeController.cs @@ -18,11 +18,22 @@ namespace HostrelHeadwaiterApp.Controllers return View(); } - public IActionResult Privacy() + public IActionResult Register() { return View(); } + public IActionResult Enter() + { + return View(); + } + + public IActionResult Report() + { + return View(); + } + + [ResponseCache(Duration = 0, Location = ResponseCacheLocation.None, NoStore = true)] public IActionResult Error() { diff --git a/Hotel/HostrelHeadwaiterApp/Views/Home/Index.cshtml b/Hotel/HostrelHeadwaiterApp/Views/Home/Index.cshtml new file mode 100644 index 0000000..8a07631 --- /dev/null +++ b/Hotel/HostrelHeadwaiterApp/Views/Home/Index.cshtml @@ -0,0 +1,67 @@ +@using HotelContracts.ViewModels + + +@model List + +@{ + ViewData["Title"] = "Home Page"; +} + +
+

Заказы

+
+ + +
+ @{ + if (Model == null) + { +

Авторизируйтесь

+ return; + } + +

+ Создать заказ +

+ + + + + + + + + + + + + @foreach (var item in Model) + { + + + + + + } + +
+ Номер + + Изделие + + Дата создания + + Количество + + Сумма + + Статус +
+ @Html.DisplayFor(modelItem => item.Id) + + @Html.DisplayFor(modelItem => item.DinnerName) + + @Html.DisplayFor(modelItem => item.DinnetPrice) +
+ } +
\ No newline at end of file diff --git a/Hotel/HostrelHeadwaiterApp/Views/Home/Register.cshtml b/Hotel/HostrelHeadwaiterApp/Views/Home/Register.cshtml index 77fe64e..69b3425 100644 --- a/Hotel/HostrelHeadwaiterApp/Views/Home/Register.cshtml +++ b/Hotel/HostrelHeadwaiterApp/Views/Home/Register.cshtml @@ -6,6 +6,10 @@

Регистрация

+
+
ФИО:
+
+
Логин:
@@ -15,8 +19,12 @@
-
ФИО:
-
+
Электронная почта:
+
+
+
+
Номер телефона:
+
diff --git a/Hotel/HostrelHeadwaiterApp/Views/Home/Report.cshtml b/Hotel/HostrelHeadwaiterApp/Views/Home/Report.cshtml new file mode 100644 index 0000000..31d8287 --- /dev/null +++ b/Hotel/HostrelHeadwaiterApp/Views/Home/Report.cshtml @@ -0,0 +1,47 @@ +@{ + ViewData["Title"] = "Report"; +} + +
+

Создание отчёта

+
+ +
+
+
+
С
+
+
+
+ + +
+
+
+
по
+
+
+
+ + +
+
+
+
+ +
+
+
+
+
+
Отчёт:
+
+ \ No newline at end of file diff --git a/Hotel/HostrelHeadwaiterApp/Views/Shared/_Layout.cshtml b/Hotel/HostrelHeadwaiterApp/Views/Shared/_Layout.cshtml index 1ad6aca..0ca0e17 100644 --- a/Hotel/HostrelHeadwaiterApp/Views/Shared/_Layout.cshtml +++ b/Hotel/HostrelHeadwaiterApp/Views/Shared/_Layout.cshtml @@ -26,7 +26,7 @@ Аутентификация