This commit is contained in:
skidoodle 2024-03-13 00:33:46 +01:00
commit e124a47765
19374 changed files with 9806149 additions and 0 deletions

View file

@ -0,0 +1,321 @@
@using Kreta.Web.Areas.Adminisztracio.Models;
@using Kreta.BusinessLogic.Classes;
@model JelszoValtoztatoModel
@{
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.UjJelszoIgenylese)</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;
}
#jelszoValtoztato {
position: relative;
z-index: 200;
}
#jelszoValtoztato .row {
margin-top: 5px;
}
#jelszoValtoztato input[type="text"]:hover,
#jelszoValtoztato input.k-textbox:hover,
#jelszoValtoztato input[type="password"]:hover {
width: 100%;
height: 36px;
background-color: #e5e9ec;
border: 1px solid #30a8cb;
padding: 0 5px;
outline: 0;
}
#jelszoValtoztato input[type="text"]:focus,
#jelszoValtoztato input[type="password"]:focus,
#jelszoValtoztato input[type="text"]:active,
#jelszoValtoztato input.k-textbox:active,
#jelszoValtoztato input[type="password"]:active {
width: 100%;
height: 36px;
background-color: white;
border: 1px solid #30a8cb;
padding: 0 5px;
outline: 0;
}
#jelszoValtoztato input[type="text"],
#jelszoValtoztato input.k-textbox,
#jelszoValtoztato input[type="password"],
#jelszoValtoztato 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;
}
#jelszoValtoztato .jValtoztato_main {
height: auto;
padding-top: 4%;
}
#jelszoValtoztato .jValtoztato_logo {
text-align: center;
margin: 0 auto;
width: 400px;
display: block;
background-position: center center;
height: 100px;
padding-top: 25px;
}
#jelszoValtoztato .jValtoztato_main .jValtoztato_container {
margin-left: 20%;
margin-right: 20%;
display: block;
background-color: white;
}
#jelszoValtoztato .jValtoztato_header {
background-color: #30a8cb;
padding: 10px 0;
text-align: center;
color: white;
}
#jelszoValtoztato .jValtoztato_content {
padding: 20px;
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
box-sizing: border-box;
overflow-y: hidden;
}
#jelszoValtoztato .jValtoztato_separator {
height: 100px;
}
#jelszoValtoztato .jValtoztato_button {
position: relative;
float: right;
height: 36px;
width: 100px;
padding: 5px 10px;
background-color: #30a8cb;
color: white;
text-transform: uppercase;
border: none;
cursor: pointer;
}
#jelszoValtoztato .jValtoztato_button:hover {
position: relative;
float: right;
width: 100px;
padding: 5px 10px;
background-color: #5BB2CB;
color: white;
text-transform: uppercase;
}
#jelszoValtoztato .jValtoztato_foot {
padding: 20px 0;
margin-top: 200px;
margin: 0 auto;
width: 400px;
display: block;
font-size: 12px;
color: #bac8d5;
}
#jelszoValtoztato .GondviseloJelszoIgeny {
padding-top: 8px;
color: #bac8d5;
cursor: pointer;
float: left;
}
#jelszoValtoztato .BejelentkezesDiv {
float: right;
padding-top: 10px;
}
#jelszoValtoztato .GondviseloJelszoIgeny a {
color: #5c6a79 !important;
-moz-text-decoration: none;
text-decoration: none;
}
.g-recaptcha {
margin-top: 5px;
display: flex;
justify-content: center;
}
@@media screen and (max-width: 600px) {
.k-widget {
width: 90vw !important;
}
.modalContent > div:first-child {
min-width: 0 !important;
}
.k-window-content {
min-height: 205px !important;
}
}
</style>
</head>
<body>
@{ Html.RenderPartial("Globalization"); }
<div id="jelszoValtoztato">
<div class="jValtoztato_main">
<div class="jValtoztato_logo">
<img src="~/App_Themes/Skin_Kreta_Gfx/content/images/kreta_feher_login.png" alt="jelszoValtoztato" />
</div>
@using (Html.KretaForm("JelszoValtoztatoForm"))
{
@Html.HiddenFor(m => m.Guid)
@Html.HiddenFor(m => m.IsSzulDatumValidacio)
<div class="jValtoztato_container">
<div class="jValtoztato_header">
<h4 class="jValtoztato_title">
<span>@(LoginResource.JelszoIgenyles)</span>
</h4>
</div>
@Html.KretaValidationSummary()
<div class="jValtoztato_content container-fluid">
@if (!string.IsNullOrWhiteSpace(Model.ErrorMessage))
{
<div class="row">
<p class="text-center">@Html.Raw(Model.ErrorMessage)</p>
</div>
}
else
{
if (Model.IsSzulDatumValidacio)
{
<div class="row">
@Html.KretaDatePickerFor(m => m.TanuloSzuletesiDatum, new Dictionary<string, object> { { "placeholder", LoginResource.TanuloSzuletesiDatum }, { "autocomplete", "off" } }).RenderWithName(3, 9)
</div>
}
<div class="row">
@Html.KretaPasswordFor(x => x.UjJelszo, new Dictionary<string, object> { { "placeholder", LoginResource.UjJelszo }, { "autocomplete", "new-password" } }).RenderWithName(3, 9)
</div>
<div class="row">
@Html.KretaPasswordFor(m => m.UjJelszoMegerositese, new Dictionary<string, object> { { "placeholder", LoginResource.UjJelszoMegerositese }, { "autocomplete", "new-password" } }).RenderWithName(3, 9)
</div>
<div style="height:30px">
<div class="GondviseloJelszoIgeny">
@Html.ActionLink(LoginResource.VisszaABejelentkezesre, "Index", "Login")
</div>
<div class="BejelentkezesDiv">
<input role="button" type="button" id="submitJelszoValtoztatas" value="@LoginResource.Elkuld" onclick="JelszoValtoztatoHelper.jelszoValtoztatas();" class="jValtoztato_button" />
</div>
</div>
}
</div>
</div>
<div class="g-recaptcha" data-type="image" data-theme="light" data-sitekey="@ApplicationData.ReCaptchaPublicKey"></div>
}
</div>
<div class="jValtoztato_foot">
</div>
</div>
<script>
var JelszoValtoztatoHelper = (function () {
var helper = function () { };
helper.jelszoValtoztatas = function () { jelszoValtoztatas(); };
function jelszoValtoztatas() {
$("#submitJelszoValtoztatas").attr("disabled", "");
var data = $("#JelszoValtoztatoForm").toObject();
data.ReCaptcha = grecaptcha.getResponse();
AjaxHelper.DoValidationPost("@Url.Action("SaveJelszo", "JelszoValtoztato")",
"JelszoValtoztatoForm",
data,
function (answer) {
KretaWindowHelper.feedbackWindow("", answer.Message, !answer.Success, function () { jelszoValtoztatasCallback(answer); });
},
jelszoValtoztatasCallback);
}
function jelszoValtoztatasCallback(answer) {
if (typeof(answer) !== "undefined" && answer.Success) {
location.href = "@Url.Action("Index", "Login", new { Area = "Adminisztracio" })";
}
else {
grecaptcha.reset();
}
$("#submitJelszoValtoztatas").removeAttr("disabled");
}
$(document).keypress(function (event) {
if (event.keyCode === 13) {
$("#submitJelszoValtoztatas").click();
}
});
return helper;
})();
</script>
</body>
</html>