init
This commit is contained in:
commit
e124a47765
19374 changed files with 9806149 additions and 0 deletions
122
KretaWeb/Views/Shared/DashboardUzenetPopup.cshtml
Normal file
122
KretaWeb/Views/Shared/DashboardUzenetPopup.cshtml
Normal file
|
@ -0,0 +1,122 @@
|
|||
@using Kreta.Web.Areas.Adminisztracio.Models
|
||||
@using Kreta.Web.Helpers
|
||||
@using Kreta.Enums.ManualEnums
|
||||
@model AdminDashboardPopupItemModel
|
||||
|
||||
@section AddCss {
|
||||
@Styles.Render("~/Content/rendszerHibaErtesitesek")
|
||||
}
|
||||
<style>
|
||||
a[href$=".pdf"] {
|
||||
height: auto;
|
||||
padding: 4px;
|
||||
-moz-transition: unset;
|
||||
-o-transition: unset;
|
||||
-webkit-transition: unset;
|
||||
transition: unset;
|
||||
}
|
||||
|
||||
a[href$=".pdf"]:hover {
|
||||
background: none !important;
|
||||
background-color: #ccc7c7 !important;
|
||||
background-size: unset !important;
|
||||
background-position: unset !important;
|
||||
-moz-transition: unset;
|
||||
-o-transition: unset;
|
||||
-webkit-transition: unset;
|
||||
transition: unset;
|
||||
}
|
||||
div.k-window-content {
|
||||
display: table;
|
||||
}
|
||||
div.popupouter {
|
||||
vertical-align: middle;
|
||||
display: table-cell;
|
||||
}
|
||||
div.popupinner {
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
width: 90%;
|
||||
}
|
||||
.popupinner .k-button {
|
||||
margin: 6px;
|
||||
}
|
||||
</style>
|
||||
<script type="text/javascript">
|
||||
var PopupHelper = (function () {
|
||||
|
||||
var popupHelper = function () { };
|
||||
|
||||
var urls = {
|
||||
UpdateCloseUrl: "@Url.Action("UpdateDashboardPopupClose", "Layout", new { area = string.Empty })"
|
||||
,UpdateConfirmUrl: "@Url.Action("UpdateDashboardPopupConfirm", "Layout", new { area = string.Empty })"
|
||||
,UpdateNextUrl: "@Url.Action("UpdateDashboardPopupNext", "Layout", new { area = string.Empty })"
|
||||
};
|
||||
|
||||
popupHelper.UpdateClose = function () {
|
||||
var postData = { popupId: '@Model.DashboardUzenetFelhasznaloId', egyediAzonosito: '@Model.EgyediAzonosito' };
|
||||
AjaxHelper.DoPost(urls.UpdateCloseUrl, postData, successSave);
|
||||
};
|
||||
|
||||
popupHelper.UpdateConfirm = function () {
|
||||
var postData = { popupId: '@Model.DashboardUzenetFelhasznaloId' };
|
||||
AjaxHelper.DoPost(urls.UpdateConfirmUrl, postData, successSave);
|
||||
};
|
||||
|
||||
popupHelper.UpdateNext = function () {
|
||||
var postData = { popupId: '@Model.DashboardUzenetFelhasznaloId' };
|
||||
AjaxHelper.DoPost(urls.UpdateNextUrl, postData, successRedirect);
|
||||
};
|
||||
|
||||
function successSave() {
|
||||
KretaWindowHelper.successFeedBackWindow(KretaWindowHelper.destroyAllWindow);
|
||||
}
|
||||
|
||||
function successRedirect(url) {
|
||||
KretaWindowHelper.destroyAllWindow();
|
||||
window.open(url, '_blank');
|
||||
}
|
||||
|
||||
return popupHelper;
|
||||
})();
|
||||
</script>
|
||||
<div class="popupouter">
|
||||
<div class="container-fluid details popupinner">
|
||||
@Html.HiddenFor(x => x.DashboardUzenetFelhasznaloId)
|
||||
@Html.HiddenFor(x => x.EgyediAzonosito)
|
||||
@Html.HiddenFor(x => x.Name)
|
||||
@Html.Raw(Model.Content)
|
||||
<div style="text-align: center">
|
||||
@if ((Model.Type == AdminDashboardTipusEnum.PopupMultipleConfirm && Model.MegjelenitesekSzama > 1)
|
||||
|| Model.Type == AdminDashboardTipusEnum.PopupNext
|
||||
|| Model.Type == AdminDashboardTipusEnum.PopupNextCaptionConfirm
|
||||
|| Model.Type == AdminDashboardTipusEnum.PopupCustomCaptionConfirm)
|
||||
{
|
||||
var caption = CommonResource.Bezar;
|
||||
if (Model.Type == AdminDashboardTipusEnum.PopupNextCaptionConfirm)
|
||||
{
|
||||
caption = CommonResource.Tovabb;
|
||||
}
|
||||
if (Model.Type == AdminDashboardTipusEnum.PopupCustomCaptionConfirm && !string.IsNullOrWhiteSpace(Model.EgyediMuvelet))
|
||||
{
|
||||
caption = Model.EgyediMuvelet;
|
||||
}
|
||||
|
||||
@Html.KretaButton("ConfirmDashboardPopup1", caption, clickEventName: "PopupHelper.UpdateClose")
|
||||
}
|
||||
@if (Model.Type == AdminDashboardTipusEnum.PopupConfirm || Model.Type == AdminDashboardTipusEnum.PopupMultipleConfirm)
|
||||
{
|
||||
@Html.KretaButton("ConfirmDashboardPopup2", CommonResource.Megertettem, clickEventName: "PopupHelper.UpdateConfirm")
|
||||
}
|
||||
@if (Model.Type == AdminDashboardTipusEnum.PopupNext)
|
||||
{
|
||||
@Html.KretaButton("ConfirmDashboardPopup3", CommonResource.Tovabb, clickEventName: "PopupHelper.UpdateNext")
|
||||
}
|
||||
@if (Model.Type == AdminDashboardTipusEnum.PopupSurvey)
|
||||
{
|
||||
@Html.KretaButton("ConfirmDashboardPopup4", CommonResource.NemToltomKi, clickEventName: "PopupHelper.UpdateClose")
|
||||
@Html.KretaButton("ConfirmDashboardPopup5", CommonResource.Kitoltom, clickEventName: "PopupHelper.UpdateNext")
|
||||
}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
Loading…
Add table
Add a link
Reference in a new issue