191 lines
6.6 KiB
Text
191 lines
6.6 KiB
Text
@model string
|
|
|
|
@{
|
|
ViewBag.Title = LoginResource.EmailKezeles;
|
|
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.KretaIskolaiAlaprendszer)</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" />
|
|
@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/KretaWindowHelper")
|
|
|
|
<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;
|
|
}
|
|
|
|
#emailKezeles {
|
|
position: relative;
|
|
z-index: 200;
|
|
}
|
|
|
|
#emailKezeles .main {
|
|
text-align: center;
|
|
height: auto;
|
|
padding-top: 8%;
|
|
}
|
|
|
|
#emailKezeles .main .logo {
|
|
margin: 0 auto;
|
|
width: 400px;
|
|
display: block;
|
|
background-position: center center;
|
|
height: 100px;
|
|
padding-top: 25px;
|
|
}
|
|
|
|
#emailKezeles .main .messageBoxContainer {
|
|
width: 600px;
|
|
margin: 0 auto;
|
|
display: block;
|
|
background-color: white;
|
|
border-width: 3px;
|
|
border-color: #30a8cb;
|
|
border-style: solid;
|
|
}
|
|
|
|
#emailKezeles .messageBoxHeader {
|
|
background-color: #30a8cb;
|
|
padding: 5px 0;
|
|
text-align: center;
|
|
font-size: 14px;
|
|
color: #FFFFFF;
|
|
}
|
|
|
|
#emailKezeles .messageBoxContent {
|
|
padding: 10px;
|
|
-moz-box-sizing: border-box;
|
|
-webkit-box-sizing: border-box;
|
|
box-sizing: border-box;
|
|
overflow-y: auto;
|
|
font-size: 13px;
|
|
}
|
|
|
|
#emailKezeles .messageBoxContent .buttonDiv {
|
|
float: right;
|
|
padding-top: 10px;
|
|
}
|
|
|
|
#emailKezeles .messageBoxContent .buttonDiv .submitButton {
|
|
position: relative;
|
|
float: right;
|
|
height: 36px;
|
|
width: auto;
|
|
padding: 5px 10px;
|
|
background-color: #30a8cb;
|
|
color: white;
|
|
text-transform: uppercase;
|
|
border: none;
|
|
cursor: pointer;
|
|
}
|
|
|
|
#emailKezeles .messageBoxContent .buttonDiv .submitButton:hover,
|
|
#emailKezeles .messageBoxContent .buttonDiv .submitButton:disabled {
|
|
position: relative;
|
|
float: right;
|
|
width: auto;
|
|
padding: 5px 10px;
|
|
background-color: #5BB2CB;
|
|
color: white;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
#emailKezeles .messageBoxContent .buttonDiv .submitButton:disabled {
|
|
cursor: default;
|
|
}
|
|
</style>
|
|
</head>
|
|
|
|
<body>
|
|
@{
|
|
Html.RenderPartial("Globalization");
|
|
}
|
|
|
|
<div id="emailKezeles">
|
|
<div class="main">
|
|
<div class="logo">
|
|
<img src="~/App_Themes/Skin_Kreta_Gfx/content/images/kreta_feher_login.png" alt="logo" />
|
|
</div>
|
|
<div class="messageBoxContainer">
|
|
<div class="messageBoxHeader">
|
|
@(LoginResource.EmailKezelesHeader)
|
|
</div>
|
|
<div class="messageBoxContent">
|
|
<div>
|
|
@(LoginResource.EmailKezelesContent)
|
|
</div>
|
|
<div class="buttonDiv">
|
|
<input role="button" type="button" id="submitButton" value="@(LoginResource.EmailKezelesButton)" class="submitButton" />
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html>
|
|
|
|
<script>
|
|
$(document).ready(function () {
|
|
$("#submitButton").on("click", EmailKezelesHelper.leiratkozas);
|
|
});
|
|
|
|
var EmailKezelesHelper = (function () {
|
|
var emailKezelesHelper = function () { };
|
|
|
|
var url = {
|
|
Leiratkozas: "@Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = "EmailKezelesApi", action = "Leiratkozas" })"
|
|
}
|
|
|
|
emailKezelesHelper.leiratkozas = function () {
|
|
var button = $("#submitButton");
|
|
button.off();
|
|
button.prop("disabled", true);
|
|
|
|
var data = "@Model";
|
|
if (!CommonUtils.isNullOrWhiteSpace(data)) {
|
|
AjaxHelper.DoPost(url.Leiratkozas, data, successCallBack, errorCallBack);
|
|
} else {
|
|
KretaWindowHelper.feedbackWindow("@(CommonResource.Hiba)", "@(ErrorResource.ErvenytelenAdat)", true);
|
|
}
|
|
}
|
|
|
|
function successCallBack() {
|
|
var messageBoxContent = $("#emailKezeles .messageBoxContent");
|
|
messageBoxContent.html("<div>@(LoginResource.EmailKezelesContentSuccess)</div>");
|
|
}
|
|
|
|
function errorCallBack(e) {
|
|
KretaWindowHelper.feedbackWindow("@(CommonResource.Hiba)", e.responseJSON.Message, true);
|
|
}
|
|
|
|
return emailKezelesHelper;
|
|
})();
|
|
</script>
|