From 1f4ed75f1351753480bc028a137f862d5a269a1c Mon Sep 17 00:00:00 2001 From: "ns.potapov" Date: Wed, 1 May 2024 15:18:32 +0400 Subject: [PATCH 1/2] =?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 From 5441bad2e548d6b210a34808ad672c1c5d65d3d7 Mon Sep 17 00:00:00 2001 From: "ns.potapov" Date: Wed, 1 May 2024 15:42:24 +0400 Subject: [PATCH 2/2] =?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=84=D0=BE=D1=80=D0=BC=D1=83=20=D1=80?= =?UTF-8?q?=D0=B5=D0=B3=D0=B8=D1=81=D1=82=D1=80=D0=B0=D1=86=D0=B8=D0=B8?= 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/Register.cshtml | 29 +++++++++++++++++++ 3 files changed, 46 insertions(+), 1 deletion(-) create mode 100644 Polyclinic/PolyclinicWebAppSuretor/Views/Home/Register.cshtml diff --git a/Polyclinic/PolyclinicWebAppSuretor/Controllers/HomeController.cs b/Polyclinic/PolyclinicWebAppSuretor/Controllers/HomeController.cs index c41e4f6..4ae744c 100644 --- a/Polyclinic/PolyclinicWebAppSuretor/Controllers/HomeController.cs +++ b/Polyclinic/PolyclinicWebAppSuretor/Controllers/HomeController.cs @@ -73,6 +73,21 @@ namespace PolyclinicWebAppSuretor.Controllers } } + [HttpGet] + [HttpPost] + public IActionResult Register() + { + 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 3d34e39..2ab062a 100644 --- a/Polyclinic/PolyclinicWebAppSuretor/SiteMenuItems.cs +++ b/Polyclinic/PolyclinicWebAppSuretor/SiteMenuItems.cs @@ -8,11 +8,12 @@ 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) Register = ("Register", "Регистрация"); 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, Login + Index, Medicaments, Procedures, Recipes, Users, ListCoursesByProcedures, Login, Register }; } } diff --git a/Polyclinic/PolyclinicWebAppSuretor/Views/Home/Register.cshtml b/Polyclinic/PolyclinicWebAppSuretor/Views/Home/Register.cshtml new file mode 100644 index 0000000..21c8dbb --- /dev/null +++ b/Polyclinic/PolyclinicWebAppSuretor/Views/Home/Register.cshtml @@ -0,0 +1,29 @@ +@{ + ViewBag.SelectedSiteMenuItem = SiteMenuItems.Register; +} +
+
+

Регистрация

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