Реализовал страницу входа поручителя
This commit is contained in:
parent
0eddc7ca9a
commit
1f4ed75f13
@ -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()
|
||||
{
|
||||
|
@ -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
|
||||
};
|
||||
}
|
||||
}
|
||||
|
25
Polyclinic/PolyclinicWebAppSuretor/Views/Home/Login.cshtml
Normal file
25
Polyclinic/PolyclinicWebAppSuretor/Views/Home/Login.cshtml
Normal file
@ -0,0 +1,25 @@
|
||||
@{
|
||||
ViewBag.SelectedSiteMenuItem = SiteMenuItems.Login;
|
||||
}
|
||||
<div class="d-flex w-100 h-100 align-content-center justify-content-center align-items-center mt-5 pt-5">
|
||||
<form class="d-flex flex-column border border-primary border-3 rounded-3 p-5" id="loginForm" method="post">
|
||||
<h4>Вход</h4>
|
||||
<div class="mb-2 row">
|
||||
<label for="emailInput" class="col-4 ps-0">
|
||||
Email
|
||||
</label>
|
||||
<input id="emailInput" type="email" name="email" placeholder="mail@example.com" class="col-8" />
|
||||
</div>
|
||||
<div class="mb-2 row">
|
||||
<label for="passwordInput" class="col-4 ps-0">
|
||||
Пароль
|
||||
</label>
|
||||
<input id="passwordInput" type="password" name="password" class="col-8" />
|
||||
</div>
|
||||
<div class="row">
|
||||
<button class="btn btn-outline-primary w-100" type="submit">
|
||||
Войти
|
||||
</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
Loading…
Reference in New Issue
Block a user