Добавил страницу регистрации, авторизации и личного кабинета

This commit is contained in:
Никита Потапов 2024-04-30 21:05:53 +04:00
parent 8c43498f47
commit 72d8ff979c
6 changed files with 35 additions and 5 deletions

View File

@ -66,6 +66,26 @@ namespace PolyclinicWebAppImplementer.Controllers
return View(); 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)] [ResponseCache(Duration = 0, Location = ResponseCacheLocation.None, NoStore = true)]
public IActionResult Error() public IActionResult Error()
{ {

View File

@ -9,10 +9,14 @@
public static (string Url, string Title) Symptom = ("Symptom", "Симптом"); public static (string Url, string Title) Symptom = ("Symptom", "Симптом");
public static (string Url, string Title) Diagnose = ("Diagnose", "Болезнь"); public static (string Url, string Title) Diagnose = ("Diagnose", "Болезнь");
public static (string Url, string Title) Course = ("Course", "Курс"); 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)> 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
}; };
} }
} }

View File

@ -0,0 +1,3 @@
@{
ViewBag.SelectedSiteMenuItem = SiteMenuItems.Login;
}

View File

@ -0,0 +1,3 @@
@{
ViewBag.SelectedSiteMenuItem = SiteMenuItems.MyPage;
}

View File

@ -1,6 +1,6 @@
@{ @{
ViewData["Title"] = "Privacy Policy"; ViewBag.SelectedSiteMenuItem = SiteMenuItems.Privacy;
} }
<h1>@ViewData["Title"]</h1> <h1>Политика приватности</h1>
<p>Use this page to detail your site's privacy policy.</p> <p>Здесь нет никакой приватности</p>

View File

@ -1,5 +1,5 @@
@{ @{
ViewData["Title"] = "Register"; ViewBag.SelectedSiteMenuItem = SiteMenuItems.Register;
} }
<div class="text-center"> <div class="text-center">
<h2 class="display-4">Регистрация</h2> <h2 class="display-4">Регистрация</h2>