пробую добавить регистрацию

This commit is contained in:
Елена Бакальская 2024-04-30 12:05:29 +04:00
parent cf81245f9b
commit d3ffccb690
2 changed files with 31 additions and 1 deletions

View File

@ -1,6 +1,7 @@
using Microsoft.AspNetCore.Mvc;
using PolyclinicWebView.Models;
using System.Diagnostics;
using System.Globalization;
namespace PolyclinicWebView.Controllers
{
@ -13,9 +14,11 @@ namespace PolyclinicWebView.Controllers
_logger = logger;
}
[HttpGet]
public IActionResult Index()
{
return View();
return View();
}
public IActionResult Privacy()

View File

@ -0,0 +1,27 @@
@{
ViewData["Title"] = "Register";
}
<div class="text-center">
<h2 class="display-4">Регистрация</h2>
</div>
<form method="post">
<div class="row">
<div class="col-4">Email:</div>
<div class="col-8"><input type="text" name="email" /></div>
</div>
<div class="row">
<div class="col-4">Пароль:</div>
<div class="col-8"><input type="password" name="password" /></div>
</div>
<div class="row">
<div class="col-4">ФИО:</div>
<div class="col-8"><input type="text" name="fio" /></div>
</div>
<div class="row">
<div class="col-8"></div>
<div class="col-4">
<input type="submit" value="Регистрация"
class="btn btn-primary" />
</div>
</div>
</form>