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,8 +9,8 @@
</head> </head>
<body> <body>
<div class="m-1 p-1"> <div class="container-fluid">
<div class="text-danger" asp-validation-summary="All"></div> <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"> <form asp-action="Login" asp-controller="Account" method="post">
<input type="hidden" asp-for="ReturnUrl" /> <input type="hidden" asp-for="ReturnUrl" />
<div class="form-group"> <div class="form-group">
@ -23,9 +23,12 @@
<div asp-validation-for="Password" class="text-danger"></div> <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>
<button class="btn btn-primary mt-2" type="submit">Log In</button> <div class="text-center">
<button class="btn btn-primary mt-4 text-center" type="submit">Log In</button>
</div>
</form> </form>
</div> </div>
</div>
</body> </body>
</html> </html>