EFB/Views/Home/Index.cshtml

44 lines
1.4 KiB
Plaintext

@{
ViewData["Title"] = "Welcome";
}
<div class="row">
<div class="card-body col-md-6">
<div class="container jumbotron">
<h3>AutoRouter Login</h3>
<br />
<br />
<form method="post" asp-controller="Home" asp-action="Login">
<div class="form-group">
<input type="text" class="form-control" placeholder="E-Mail" name="email" value="@TempData["email"]">
</div>
<div class="form-group">
<input type="password" class="form-control" placeholder="Password" name="password">
</div>
<button type="submit" class="btn btn-secondary">Login</button>
@{
if (TempData["Error"] != null)
{//If an error has been flagged, information will be displayed to the user
<br />
<br />
<div class="alert alert-danger">
<strong>Warning!</strong> @TempData["Error"] <button type='button' class='close' data-dismiss='alert' aria-hidden='true' />&times;
</div>
}
}
</form>
</div>
</div>
<div class="card-body mh-100 bg-warning col-md-6">
<img src="/images/MainImage.png" width="100%" height="100%" style="object-fit: cover;">
</div>
</div>