0
0

Center login form

This commit is contained in:
Sergey Chebotar 2023-05-29 07:19:13 +03:00
parent 1c7e179377
commit 55b30fc75a

View File

@ -9,23 +9,26 @@
</head>
<body>
<div class="m-1 p-1">
<div class="text-danger" asp-validation-summary="All"></div>
<div class="container-fluid">
<div class="form-outline d-flex flex-column min-vh-100 justify-content-center align-items-center">
<form asp-action="Login" asp-controller="Account" method="post">
<input type="hidden" asp-for="ReturnUrl" />
<div class="form-group">
<label asp-for="Name"></label>
<div asp-validation-for="Name" class="text-danger"></div>
<input name="Name" class="form-control" value="@Model.Name"/>
<input name="Name" class="form-control" value="@Model.Name" />
</div>
<div class="form-group">
<label asp-for="Password"></label>
<div asp-validation-for="Password" class="text-danger"></div>
<input name="Password" type="password" class="form-control" value="@Model.Password"/>
<input name="Password" type="password" class="form-control" value="@Model.Password" />
</div>
<div class="text-center">
<button class="btn btn-primary mt-4 text-center" type="submit">Log In</button>
</div>
<button class="btn btn-primary mt-2" type="submit">Log In</button>
</form>
</div>
</div>
</body>
</html>