SoftwayWeb/Views/Login/Login.cshtml

45 lines
1.9 KiB
Plaintext

@* @model IEnumerable<SoftwayWeb.Models.Login> *@
@model SoftwayWeb.Models.Login
@{
ViewData["Title"] = "Login";
}
<!-- Basic Layout -->
<div class="row">
<div style="float:left;width:25%">&nbsp;</div>
<div style="float:left;width:50%;">
<div class="col-xl">
<div class="card mb-4">
<div class="card-header d-flex justify-content-between align-items-center">
<h5 class="mb-0">Login</h5> <small class="text-muted float-end"></small>
</div>
<div class="card-body">
<form asp-action="Login">
<div asp-validation-summary="ModelOnly" class="text-danger"></div>
<div class="mb-3">
<label class="form-label" for="basic-default-fullname">Username</label>
<input asp-for="username" class="form-control" placeholder="" />
<span asp-validation-for="username" class="text-danger"></span>
</div>
<div class="mb-3">
<label class="form-label" for="basic-default-company">Password</label>
<input asp-for="password" class="form-control" placeholder="" type="password" />
<span asp-validation-for="password" class="text-danger"></span>
</div>
<button type="submit" class="btn btn-primary">Entra</button>
</form>
</div>
<div class="row" style="float:left;width:100%">
<div class="col-md-6" style="color:red;">
@ViewBag.Error
</div>
</div>
</div>
</div>
</div>
<div style="float:left;width:35%">&nbsp;</div>
</div>