Реализовал форму регистрации
This commit is contained in:
parent
1f4ed75f13
commit
5441bad2e5
@ -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)]
|
[ResponseCache(Duration = 0, Location = ResponseCacheLocation.None, NoStore = true)]
|
||||||
public IActionResult Error()
|
public IActionResult Error()
|
||||||
{
|
{
|
||||||
|
@ -8,11 +8,12 @@
|
|||||||
public static (string Url, string Title) Recipes = ("Recipes", "Рецепты");
|
public static (string Url, string Title) Recipes = ("Recipes", "Рецепты");
|
||||||
public static (string Url, string Title) Users = ("Users", "Пользователи");
|
public static (string Url, string Title) Users = ("Users", "Пользователи");
|
||||||
public static (string Url, string Title) Login = ("Login", "Вход");
|
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 (string Url, string Title) ListCoursesByProcedures = ("ListCoursesByProcedures", "Список курсов приема препаратов");
|
||||||
|
|
||||||
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, Medicaments, Procedures, Recipes, Users, ListCoursesByProcedures, Login
|
Index, Medicaments, Procedures, Recipes, Users, ListCoursesByProcedures, Login, Register
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -0,0 +1,29 @@
|
|||||||
|
@{
|
||||||
|
ViewBag.SelectedSiteMenuItem = SiteMenuItems.Register;
|
||||||
|
}
|
||||||
|
<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-success border-3 rounded-3 p-5" id="loginForm" method="post">
|
||||||
|
<h4>Регистрация</h4>
|
||||||
|
<div class="d-flex mb-3">
|
||||||
|
<label for="fioInput" class="pe-3 w-25">
|
||||||
|
ФИО
|
||||||
|
</label>
|
||||||
|
<input class="w-100" type="text" name="fio" id="fioInput" placeholder="Иванов Иван Иванович" />
|
||||||
|
</div>
|
||||||
|
<div class="d-flex mb-3">
|
||||||
|
<label for="emailInput" class="pe-3 w-25">
|
||||||
|
Email
|
||||||
|
</label>
|
||||||
|
<input class="w-100" type="email" name="email" id="emailInput" placeholder="mail@example.com" />
|
||||||
|
</div>
|
||||||
|
<div class="d-flex mb-3">
|
||||||
|
<label for="passwordInput" class="pe-3 w-50">
|
||||||
|
Пароль
|
||||||
|
</label>
|
||||||
|
<input class="w-100" type="password" name="password" id="passwordInput" />
|
||||||
|
</div>
|
||||||
|
<button class="btn btn-outline-success" type="submit">
|
||||||
|
Зарегистрироваться
|
||||||
|
</button>
|
||||||
|
</form>
|
||||||
|
</div>
|
Loading…
Reference in New Issue
Block a user