From 1f4ed75f1351753480bc028a137f862d5a269a1c Mon Sep 17 00:00:00 2001 From: "ns.potapov" Date: Wed, 1 May 2024 15:18:32 +0400 Subject: [PATCH] =?UTF-8?q?=D0=A0=D0=B5=D0=B0=D0=BB=D0=B8=D0=B7=D0=BE?= =?UTF-8?q?=D0=B2=D0=B0=D0=BB=20=D1=81=D1=82=D1=80=D0=B0=D0=BD=D0=B8=D1=86?= =?UTF-8?q?=D1=83=20=D0=B2=D1=85=D0=BE=D0=B4=D0=B0=20=D0=BF=D0=BE=D1=80?= =?UTF-8?q?=D1=83=D1=87=D0=B8=D1=82=D0=B5=D0=BB=D1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Controllers/HomeController.cs | 15 +++++++++++ .../PolyclinicWebAppSuretor/SiteMenuItems.cs | 3 ++- .../Views/Home/Login.cshtml | 25 +++++++++++++++++++ 3 files changed, 42 insertions(+), 1 deletion(-) create mode 100644 Polyclinic/PolyclinicWebAppSuretor/Views/Home/Login.cshtml diff --git a/Polyclinic/PolyclinicWebAppSuretor/Controllers/HomeController.cs b/Polyclinic/PolyclinicWebAppSuretor/Controllers/HomeController.cs index 57869ac..c41e4f6 100644 --- a/Polyclinic/PolyclinicWebAppSuretor/Controllers/HomeController.cs +++ b/Polyclinic/PolyclinicWebAppSuretor/Controllers/HomeController.cs @@ -58,6 +58,21 @@ namespace PolyclinicWebAppSuretor.Controllers return View(); } + [HttpGet] + [HttpPost] + public IActionResult Login() + { + if (HttpContext.Request.Method == "POST") + { + // - + return View(); + } + else + { + return View(); + } + } + [ResponseCache(Duration = 0, Location = ResponseCacheLocation.None, NoStore = true)] public IActionResult Error() { diff --git a/Polyclinic/PolyclinicWebAppSuretor/SiteMenuItems.cs b/Polyclinic/PolyclinicWebAppSuretor/SiteMenuItems.cs index 3c0d84c..3d34e39 100644 --- a/Polyclinic/PolyclinicWebAppSuretor/SiteMenuItems.cs +++ b/Polyclinic/PolyclinicWebAppSuretor/SiteMenuItems.cs @@ -7,11 +7,12 @@ public static (string Url, string Title) Procedures = ("Procedures", "Процедуры"); public static (string Url, string Title) Recipes = ("Recipes", "Рецепты"); public static (string Url, string Title) Users = ("Users", "Пользователи"); + public static (string Url, string Title) Login = ("Login", "Вход"); public static (string Url, string Title) ListCoursesByProcedures = ("ListCoursesByProcedures", "Список курсов приема препаратов"); public static List<(string Url, string Title)> MenuItemsOrder = new List<(string Url, string Title)> { - Index, Medicaments, Procedures, Recipes, Users, ListCoursesByProcedures + Index, Medicaments, Procedures, Recipes, Users, ListCoursesByProcedures, Login }; } } diff --git a/Polyclinic/PolyclinicWebAppSuretor/Views/Home/Login.cshtml b/Polyclinic/PolyclinicWebAppSuretor/Views/Home/Login.cshtml new file mode 100644 index 0000000..c7e4e0c --- /dev/null +++ b/Polyclinic/PolyclinicWebAppSuretor/Views/Home/Login.cshtml @@ -0,0 +1,25 @@ +@{ + ViewBag.SelectedSiteMenuItem = SiteMenuItems.Login; +} +
+
+

Вход

+
+ + +
+
+ + +
+
+ +
+
+
\ No newline at end of file