kreta/KretaWeb/Areas/Adminisztracio/Views/GondviseloJelszoIgenylo/Index.cshtml
2024-03-13 00:33:46 +01:00

317 lines
No EOL
10 KiB
Text

@using Kreta.Web.Areas.Adminisztracio.Models;
@using Kreta.BusinessLogic.Classes;
@model GondviseloJelszoIgenyloModel
@{
Layout = null;
}
<!DOCTYPE html>
<html lang="hu">
<head>
<meta charset="utf-8" />
<meta name="format-detection" content="telephone=no" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="IE=Edge" />
<title>@(LoginResource.GondviseloJelszoIgenylo)</title>
<link rel="preconnect" href="https://fonts.googleapis.com" crossorigin>
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300;0,400;0,600;0,700;1,300;1,400;1,600&family=Roboto+Condensed:wght@300;400;700&display=swap" rel="stylesheet">
<link rel="icon" href="../../favicon.ico" type="image/x-icon" />
<script src='https://www.google.com/recaptcha/api.js?hl=hu'></script>
@Styles.Render("~/Content/css", "~/Content/kretaControls")
@Styles.Render(Request.Browser.IsMobileDevice ? "~/Content/kretaMobileCss" : "~/Content/kretaCss")
@Scripts.Render("~/bundles/document-register-element")
@Scripts.Render("~/bundles/modernizr")
@Scripts.Render("~/bundles/jquery")
@Scripts.Render("~/bundles/js")
@Scripts.Render("~/bundles/kendo")
@Scripts.Render("~/bundles/KretaComboBoxHelper")
@Scripts.Render("~/bundles/KretaWindowHelper")
@Html.Raw(Kreta.Core.Analytics.Client.Factory.GetInstance())
<style>
html {
height: 100%;
}
body {
margin: 0;
padding: 0;
height: 100%;
font-family: "Open Sans";
font-size: 14px;
font-weight: 400;
color: #445261;
background-color: #385765;
}
#gondviseloJelszoIgenylo {
position: relative;
z-index: 200;
}
#gondviseloJelszoIgenylo .row {
margin-top: 5px;
}
#gondviseloJelszoIgenylo input[type="text"]:hover,
#gondviseloJelszoIgenylo input.k-textbox:hover,
#gondviseloJelszoIgenylo input[type="password"]:hover {
width: 100%;
height: 36px;
background-color: #e5e9ec;
border: 1px solid #30a8cb;
padding: 0 5px;
outline: 0;
}
#gondviseloJelszoIgenylo input[type="text"]:focus,
#gondviseloJelszoIgenylo input[type="password"]:focus,
#gondviseloJelszoIgenylo input[type="text"]:active,
#gondviseloJelszoIgenylo input.k-textbox:active,
#gondviseloJelszoIgenylo input[type="password"]:active {
width: 100%;
height: 36px;
background-color: white;
border: 1px solid #30a8cb;
padding: 0 5px;
outline: 0;
}
#gondviseloJelszoIgenylo input[type="text"],
#gondviseloJelszoIgenylo input.k-textbox,
#gondviseloJelszoIgenylo input[type="password"],
#gondviseloJelszoIgenylo select {
width: 100%;
height: 36px;
background-color: #e5e9ec;
border: none;
padding: 0 6px;
outline: 0;
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
box-sizing: border-box;
font-family: "Open Sans";
font-size: 14px;
font-weight: 400;
}
#gondviseloJelszoIgenylo h2 {
color: white;
font-weight: 300;
font-size: 2em;
margin: 0;
}
#gondviseloJelszoIgenylo .gJelszoIgeny_main {
height: auto;
padding-top: 4%;
}
#gondviseloJelszoIgenylo .gJelszoIgeny_logo {
text-align: center;
margin: 0 auto;
width: 400px;
display: block;
background-position: center center;
height: 100px;
padding-top: 25px;
}
#gondviseloJelszoIgenylo .gJelszoIgeny_main .gJelszoIgeny_container {
margin-left: 4%;
margin-right: 4%;
display: block;
background-color: white;
}
#gondviseloJelszoIgenylo .gJelszoIgeny_header {
background-color: #30a8cb;
padding: 10px 0;
text-align: center;
color: white;
}
#gondviseloJelszoIgenylo .gJelszoIgeny_content {
padding: 20px;
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
box-sizing: border-box;
overflow-y: hidden;
}
#gondviseloJelszoIgenylo .gJelszoIgeny_button {
position: relative;
float: right;
height: 36px;
width: auto;
padding: 5px 10px;
background-color: #30a8cb;
color: white;
text-transform: uppercase;
border: none;
cursor: pointer;
}
#gondviseloJelszoIgenylo .gJelszoIgeny_button:hover {
position: relative;
float: right;
width: auto;
padding: 5px 10px;
background-color: #5BB2CB;
color: white;
text-transform: uppercase;
}
#gondviseloJelszoIgenylo .GondviseloJelszoIgeny {
padding-top: 20px;
color: #bac8d5;
float: left;
}
#gondviseloJelszoIgenylo .GondviseloJelszoIgeny a {
color: #5c6a79 !important;
cursor: pointer;
-moz-text-decoration: none;
text-decoration: none;
}
#submitGondviseloJelszo:disabled {
background-color: grey;
}
#submitGondviseloJelszo:disabled:hover {
background-color: grey;
}
.BejelentkezesDiv {
float: right;
padding-top: 10px;
}
.g-recaptcha {
margin-top: 5px;
display: flex;
justify-content: center;
}
@@media screen and (max-width: 600px) {
body > div:last-child {
left: 0px !important;
top: 0px !important;
}
}
</style>
</head>
<body>
@{ Html.RenderPartial("Globalization"); }
<div id="gondviseloJelszoIgenylo">
<div class="gJelszoIgeny_main">
<div class="gJelszoIgeny_logo">
<img src="~/App_Themes/Skin_Kreta_Gfx/content/images/kreta_feher_login.png" alt="JelszoIgenylo" />
</div>
@using (Html.KretaForm("GondviseloJelszoForm"))
{
<div class="gJelszoIgeny_container">
<div class="gJelszoIgeny_header">
<h4 class="gJelszoIgeny_title">
<span>@(LoginResource.GondviseloiJelszoIgenylese)</span>
</h4>
</div>
@Html.KretaValidationSummary()
<div class="gJelszoIgeny_content container-fluid">
@Html.Partial("_Cim_Elerhetoseg_Partial", Model)
<div class="row">
<div id="adatvedelmiCheck" class="col-md-12">
@Html.KretaCheckBoxFor(x => x.AdatvedelmiTajekozatatoCheck)
<label for="AdatvedelmiTajekozatatoCheck">@Html.Raw(AdminisztracioResource.AdatvedelmiTajekoztatoSzoveg)</label>
</div>
</div>
<div style="height:40px">
<div class="GondviseloJelszoIgeny">
@Html.ActionLink(LoginResource.VisszaABejelentkezesre, "Index", "Login")
</div>
<div class="BejelentkezesDiv">
<input role="button" type="button" id="submitGondviseloJelszo" value="@LoginResource.HozzaferesIgenyles" onclick="GondviseloHelper.gondviseloJelszoIgenyles();" class="gJelszoIgeny_button" />
</div>
</div>
</div>
</div>
<div class="g-recaptcha" data-type="image" data-theme="light" data-sitekey="@ApplicationData.ReCaptchaPublicKey"></div>
}
</div>
</div>
<script>
var GondviseloHelper = (function () {
var helper = function () { };
helper.gondviseloJelszoIgenyles = function () { gondviseloJelszoIgenyles(); };
helper.pdfLetoltes = function () { pdfLetoltes(); };
helper.setSubmitButton = function () { setSubmitButton(); };
function gondviseloJelszoIgenyles() {
$("#submitGondviseloJelszo").attr("disabled", "");
var data = $("#GondviseloJelszoForm").toObject();
data.ReCaptcha = grecaptcha.getResponse();
AjaxHelper.DoValidationPost("@Url.Action("GondviseloJelszoIgenyles", "GondviseloJelszoIgenylo")",
"GondviseloJelszoForm",
data,
function (answer) {
KretaWindowHelper.feedbackWindow("", answer.Message, !answer.Success, function () { gondviseloJelszoIgenylesCallback(answer); });
},
gondviseloJelszoIgenylesCallback);
}
function pdfLetoltes() {
AjaxHelper.DoPostElement("@Url.Action("PdfLetoltes", "GondviseloJelszoIgenylo")", "GondviseloJelszoForm", function (data) { window.location = data; });
}
function gondviseloJelszoIgenylesCallback(answer) {
if (typeof(answer) !== "undefined" && answer.Success) {
location.href = "@Url.Action("Index", "Login", new { Area = "Adminisztracio" })";
}
else {
grecaptcha.reset();
}
$("#submitGondviseloJelszo").removeAttr("disabled");
}
function setSubmitButton() {
if ($("#AdatvedelmiTajekozatatoCheck").is(':checked')) {
$("#submitGondviseloJelszo").removeAttr("disabled");
} else {
$("#submitGondviseloJelszo").attr("disabled", "");
}
}
$(document).keypress(function (event) {
if (event.keyCode === 13) {
$("#submitGondviseloJelszo").click();
}
});
return helper;
})();
</script>
<script>
$(document).ready(function () {
$("#adatvedelmiCheck").change(function () {
GondviseloHelper.setSubmitButton();
})
GondviseloHelper.setSubmitButton();
});
</script>
</body>
</html>