57 lines
2.2 KiB
Plaintext
57 lines
2.2 KiB
Plaintext
@page
|
|
@model WorkFlowCheck.Web.Pages.Account.LoginModel
|
|
@using WorkFlowCheck.Common.Helper
|
|
@using WorkFlowCheck.Common.DTO
|
|
@{
|
|
Layout = null;
|
|
ViewData["Title"] = "Bejelentkezés";
|
|
}
|
|
|
|
|
|
|
|
<!DOCTYPE html>
|
|
<html lang="hu">
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
<title>@ViewData["Title"]</title>
|
|
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet">
|
|
</head>
|
|
<body class="bg-light d-flex justify-content-center align-items-center vh-100">
|
|
<div class="card shadow p-4" style="min-width: 350px; max-width: 400px; width: 100%;">
|
|
<h2 class="mb-4 text-center">Bejelentkezés</h2>
|
|
|
|
@if (!string.IsNullOrEmpty(Model.ErrorMessage))
|
|
{
|
|
<div class="alert alert-danger">@Model.ErrorMessage</div>
|
|
}
|
|
|
|
<form method="post">
|
|
<div class="mb-3">
|
|
<label asp-for="UserSimpleDTO.UserName" class="form-label">Felhasználónév</label>
|
|
<input asp-for="UserSimpleDTO.UserName" class="form-control" />
|
|
<span asp-validation-for="UserSimpleDTO.UserName" class="text-danger small"></span>
|
|
</div>
|
|
|
|
<div class="mb-3">
|
|
<label asp-for="UserSimpleDTO.Password" class="form-label">Jelszó</label>
|
|
<input asp-for="UserSimpleDTO.Password" type="password" class="form-control" />
|
|
<span asp-validation-for="UserSimpleDTO.Password" class="text-danger small"></span>
|
|
</div>
|
|
|
|
<div class="d-grid">
|
|
<button type="submit" class="btn btn-primary">Bejelentkezés</button>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
|
|
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js"></script>
|
|
<script src="https://code.jquery.com/jquery-3.7.1.min.js"></script>
|
|
<script src="https://cdn.jsdelivr.net/npm/jquery-validation@1.19.5/dist/jquery.validate.min.js"></script>
|
|
<script src="https://cdn.jsdelivr.net/npm/jquery-validation-unobtrusive@4.0.0/dist/jquery.validate.unobtrusive.min.js"></script>
|
|
|
|
<partial name="_ValidationScriptsPartial" />
|
|
</body>
|
|
</html>
|
|
|