From 72d8ff979c5757c46323d56c73976ffee1e2d89f Mon Sep 17 00:00:00 2001 From: "ns.potapov" Date: Tue, 30 Apr 2024 21:05:53 +0400 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=B8=D0=BB=20?= =?UTF-8?q?=D1=81=D1=82=D1=80=D0=B0=D0=BD=D0=B8=D1=86=D1=83=20=D1=80=D0=B5?= =?UTF-8?q?=D0=B3=D0=B8=D1=81=D1=82=D1=80=D0=B0=D1=86=D0=B8=D0=B8,=20?= =?UTF-8?q?=D0=B0=D0=B2=D1=82=D0=BE=D1=80=D0=B8=D0=B7=D0=B0=D1=86=D0=B8?= =?UTF-8?q?=D0=B8=20=D0=B8=20=D0=BB=D0=B8=D1=87=D0=BD=D0=BE=D0=B3=D0=BE=20?= =?UTF-8?q?=D0=BA=D0=B0=D0=B1=D0=B8=D0=BD=D0=B5=D1=82=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Controllers/HomeController.cs | 20 +++++++++++++++++++ .../SiteMenuItems.cs | 6 +++++- .../Views/Home/Login.cshtml | 3 +++ .../Views/Home/MyPage.cshtml | 3 +++ .../Views/Home/Privacy.cshtml | 6 +++--- .../Views/Home/Register.cshtml | 2 +- 6 files changed, 35 insertions(+), 5 deletions(-) create mode 100644 Polyclinic/PolyclinicWebAppImplementer/Views/Home/Login.cshtml create mode 100644 Polyclinic/PolyclinicWebAppImplementer/Views/Home/MyPage.cshtml diff --git a/Polyclinic/PolyclinicWebAppImplementer/Controllers/HomeController.cs b/Polyclinic/PolyclinicWebAppImplementer/Controllers/HomeController.cs index f192880..0850100 100644 --- a/Polyclinic/PolyclinicWebAppImplementer/Controllers/HomeController.cs +++ b/Polyclinic/PolyclinicWebAppImplementer/Controllers/HomeController.cs @@ -66,6 +66,26 @@ namespace PolyclinicWebAppImplementer.Controllers return View(); } + public IActionResult Privacy() + { + return View(); + } + + public IActionResult Login() + { + return View(); + } + + public IActionResult Register() + { + return View(); + } + + public IActionResult MyPage() + { + return View(); + } + [ResponseCache(Duration = 0, Location = ResponseCacheLocation.None, NoStore = true)] public IActionResult Error() { diff --git a/Polyclinic/PolyclinicWebAppImplementer/SiteMenuItems.cs b/Polyclinic/PolyclinicWebAppImplementer/SiteMenuItems.cs index cd92b6b..877bdfd 100644 --- a/Polyclinic/PolyclinicWebAppImplementer/SiteMenuItems.cs +++ b/Polyclinic/PolyclinicWebAppImplementer/SiteMenuItems.cs @@ -9,10 +9,14 @@ public static (string Url, string Title) Symptom = ("Symptom", "Симптом"); public static (string Url, string Title) Diagnose = ("Diagnose", "Болезнь"); public static (string Url, string Title) Course = ("Course", "Курс"); + public static (string Url, string Title) Login = ("Login", "Вход"); + public static (string Url, string Title) Register = ("Register", "Регистрация"); + public static (string Url, string Title) MyPage = ("MyPage", "Личный кабинет"); + public static (string Url, string Title) Privacy = ("Privacy", "Политика приватности"); public static List<(string Url, string Title)> MenuItemsOrder = new List<(string Url, string Title)> { - Index, Courses, Diagnoses, Symptomes + Index, Courses, Diagnoses, Symptomes, Login, Register, MyPage }; } } diff --git a/Polyclinic/PolyclinicWebAppImplementer/Views/Home/Login.cshtml b/Polyclinic/PolyclinicWebAppImplementer/Views/Home/Login.cshtml new file mode 100644 index 0000000..9948ff3 --- /dev/null +++ b/Polyclinic/PolyclinicWebAppImplementer/Views/Home/Login.cshtml @@ -0,0 +1,3 @@ +@{ + ViewBag.SelectedSiteMenuItem = SiteMenuItems.Login; +} diff --git a/Polyclinic/PolyclinicWebAppImplementer/Views/Home/MyPage.cshtml b/Polyclinic/PolyclinicWebAppImplementer/Views/Home/MyPage.cshtml new file mode 100644 index 0000000..123a471 --- /dev/null +++ b/Polyclinic/PolyclinicWebAppImplementer/Views/Home/MyPage.cshtml @@ -0,0 +1,3 @@ +@{ + ViewBag.SelectedSiteMenuItem = SiteMenuItems.MyPage; +} diff --git a/Polyclinic/PolyclinicWebAppImplementer/Views/Home/Privacy.cshtml b/Polyclinic/PolyclinicWebAppImplementer/Views/Home/Privacy.cshtml index af4fb19..ce65fcc 100644 --- a/Polyclinic/PolyclinicWebAppImplementer/Views/Home/Privacy.cshtml +++ b/Polyclinic/PolyclinicWebAppImplementer/Views/Home/Privacy.cshtml @@ -1,6 +1,6 @@ @{ - ViewData["Title"] = "Privacy Policy"; + ViewBag.SelectedSiteMenuItem = SiteMenuItems.Privacy; } -

@ViewData["Title"]

+

Политика приватности

-

Use this page to detail your site's privacy policy.

+

Здесь нет никакой приватности

diff --git a/Polyclinic/PolyclinicWebAppImplementer/Views/Home/Register.cshtml b/Polyclinic/PolyclinicWebAppImplementer/Views/Home/Register.cshtml index 913a04a..6a21190 100644 --- a/Polyclinic/PolyclinicWebAppImplementer/Views/Home/Register.cshtml +++ b/Polyclinic/PolyclinicWebAppImplementer/Views/Home/Register.cshtml @@ -1,5 +1,5 @@ @{ - ViewData["Title"] = "Register"; + ViewBag.SelectedSiteMenuItem = SiteMenuItems.Register; }

Регистрация