108 lines
No EOL
3.9 KiB
Text
108 lines
No EOL
3.9 KiB
Text
@using Kreta.Resources
|
|
@using Kreta.Web.Areas.Tanulo.Models;
|
|
@{
|
|
@model HozzaferesGeneralasaModel
|
|
}
|
|
|
|
<style type="text/css">
|
|
.confirmTextDiv {
|
|
padding-left:11px;
|
|
}
|
|
|
|
.hozzaferesGeneralasEsFajlLetoltesDiv {
|
|
padding-left:11px;
|
|
padding-top:10px;
|
|
}
|
|
|
|
.errorListDiv {
|
|
color: red;
|
|
}
|
|
|
|
.errorHeader {
|
|
padding-left: 1em;
|
|
}
|
|
|
|
.errorList {
|
|
padding-left: 1.5em;
|
|
}
|
|
|
|
.errorList > ul {
|
|
list-style-type: none;
|
|
}
|
|
</style>
|
|
|
|
<div class="container-fluid details">
|
|
<div class="row initialBorder confirmTextDiv">
|
|
<span><i class="fa fa-info confirmWindowIcon"></i> </span>
|
|
@Model.ConfirmText
|
|
</div>
|
|
@if (Model.GeneraltFileLetoltes)
|
|
{
|
|
<div class="row initialBorder initialBackgroundColor initialMinHeight hozzaferesGeneralasEsFajlLetoltesDiv">
|
|
@Html.KretaCheckBoxFor(model => model.GeneraltFileLetoltes).Label(TanuloResource.HozzaferesGeneralasEsFajlLetoltes)
|
|
</div>
|
|
}
|
|
@if (Model.EmailKuldes)
|
|
{
|
|
<div class="row initialBorder initialBackgroundColor initialMinHeight hozzaferesGeneralasEsFajlLetoltesDiv">
|
|
@Html.KretaCheckBoxFor(model => model.EmailKuldes).Label(TanuloResource.BelepesiAdatokKikuldeseEmailben)
|
|
</div>
|
|
if (Model.IsPasswordReset)
|
|
{
|
|
if (Model.TanulokEmailElerhetosegNelkul > 0)
|
|
{
|
|
<div class="row initialBorder initialBackgroundColor initialMinHeight hozzaferesGeneralasEsFajlLetoltesDiv">
|
|
<span>@string.Format(TanuloResource.HaNincsRogzitettEmailNemMegyErtesitoLevel, Model.TanulokEmailElerhetosegNelkul)</span>
|
|
</div>
|
|
<div class="row initialBorder initialBackgroundColor initialMinHeight hozzaferesGeneralasEsFajlLetoltesDiv">
|
|
<span>@Html.Raw(TanuloResource.AzAlabbiFelhasznaloknakNemTudARendszerUzenetetKuldeni)</span><a class="xlsxLetoltes" style="font-weight: bold;" href="#">@Html.Raw(TanuloResource.ListaLetoltese.ToUpper())</a>
|
|
</div>
|
|
}
|
|
}
|
|
}
|
|
<div id="validationContainer" class="row initialMinHeight displayNone errorListDiv">
|
|
<div class="errorHeader">
|
|
@TanuloResource.AKovetkezoknelHozzaferesGeneralasaSikertelen
|
|
</div>
|
|
<div id="validationResultOfNebuloImport" class="errorList">
|
|
<ul id="validationResultOfAzonositoGeneralasUl"></ul>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<script type="text/javascript">
|
|
$(document).ready(function () {
|
|
$(".xlsxLetoltes").click(function (e) {
|
|
e.preventDefault();
|
|
var payload = HozzaferesGeneralasHelper.getTanuloList();
|
|
AjaxHelper.DownloadFile("@Url.Action("DownloadEmailNelkuliTanulokJelszoResetEsetenXlsx", Constants.Controllers.EGYMITanulo, new { area = Constants.Areas.Tanulo })", payload, false);
|
|
});
|
|
});
|
|
|
|
var HozzaferesGeneralasHelper = (function () {
|
|
var hozzaferesGeneralasHelper = function () { };
|
|
|
|
hozzaferesGeneralasHelper.getTanuloList = function () {
|
|
var result = @Html.Raw(Json.Encode(@Model.TanuloIdList));
|
|
return result;
|
|
}
|
|
hozzaferesGeneralasHelper.getHozzaferesType = function () {
|
|
var result = CommonUtils.parseBool("@Model.IsTanulo");
|
|
return result;
|
|
}
|
|
|
|
hozzaferesGeneralasHelper.getGeneraltFileLetoltes = function () {
|
|
var result = KretaCheckBoxHelper.getValue("GeneraltFileLetoltes");
|
|
return result;
|
|
}
|
|
hozzaferesGeneralasHelper.getGenerateOnlyPassword = function () {
|
|
var result = CommonUtils.parseBool("@Model.IsPasswordReset");
|
|
return result;
|
|
}
|
|
hozzaferesGeneralasHelper.getEmailKuldesSzukseges = function () {
|
|
var result = KretaCheckBoxHelper.getValue("EmailKuldes");
|
|
return result;
|
|
}
|
|
return hozzaferesGeneralasHelper;
|
|
})();
|
|
</script> |