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,22 +9,25 @@
</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">
<label asp-for="Name"></label> <label asp-for="Name"></label>
<div asp-validation-for="Name" class="text-danger"></div> <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>
<div class="form-group"> <div class="form-group">
<label asp-for="Password"></label> <label asp-for="Password"></label>
<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">
</form> <button class="btn btn-primary mt-4 text-center" type="submit">Log In</button>
</div>
</form>
</div>
</div> </div>
</body> </body>