44 lines
1.8 KiB
Plaintext
44 lines
1.8 KiB
Plaintext
@using System.Collections.Generic
|
|
@using Microsoft.AspNetCore.Authentication
|
|
@using Microsoft.AspNetCore.Http
|
|
@using Microsoft.AspNetCore.Mvc.Localization
|
|
@model UserModel
|
|
@inject IViewLocalizer Localizer
|
|
@{
|
|
ViewData["Title"] = @Localizer["Title"];
|
|
}
|
|
|
|
<h1><i class="fas fa-user"></i> @ViewData["Title"]</h1>
|
|
<div class="row">
|
|
<div class="col-md-8">
|
|
<section>
|
|
<form asp-controller="Account" asp-action="Login" asp-route-returnurl="@ViewData["ReturnUrl"]" method="post" class="form-horizontal" role="form">
|
|
<hr />
|
|
<div asp-validation-summary="ModelOnly" class="text-danger"></div>
|
|
<div class="form-group">
|
|
<label asp-for="Username" class="col-md-2 control-label">@Localizer["Username"]</label>
|
|
<div class="col-md-10">
|
|
<input asp-for="Username" class="form-control" />
|
|
<span asp-validation-for="Username" class="text-danger"></span>
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<label asp-for="Password" class="col-md-2 control-label">@Localizer["Password"]</label>
|
|
<div class="col-md-10">
|
|
<input asp-for="Password" type="password" class="form-control" />
|
|
<span asp-validation-for="Password" class="text-danger"></span>
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<div class="col-md-offset-2 col-md-10">
|
|
<button type="submit" class="btn btn-primary">@Localizer["Login"]</button>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</section>
|
|
</div>
|
|
</div>
|
|
|
|
@section Scripts {
|
|
@{ await Html.RenderPartialAsync("_ValidationScriptsPartial"); }
|
|
} |