109 lines
No EOL
3.1 KiB
Text
109 lines
No EOL
3.1 KiB
Text
@using Kreta.Web.Helpers
|
|
@using Kreta.Resources
|
|
@using Kreta.Web.Areas.Tantargy.Models
|
|
@model TantargyModModel
|
|
|
|
@* Ez a többes módosítás felülete *@
|
|
<style>
|
|
#TantargyTabstrip {
|
|
height: 95%;
|
|
}
|
|
|
|
#TobbesTantargyModKivalasztottTantargyNevek {
|
|
min-height: 36px;
|
|
max-height: 5%;
|
|
width: calc(100% - 205px);
|
|
display: inline-flex;
|
|
font-weight: bold;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
#TobbesTantargyModKivalasztottTantargyNevekCim {
|
|
padding-left: 13px;
|
|
padding-top: 13px;
|
|
min-height: 36px;
|
|
max-height: 5%;
|
|
width: 188px;
|
|
display: inline-block;
|
|
font-weight: bold;
|
|
}
|
|
|
|
#TobbesTantargyModPopUpContainer {
|
|
height: calc(100% - 13px);
|
|
}
|
|
|
|
#TantargyModWindow .modalContainer .modalContent > .k-content {
|
|
overflow-y: hidden;
|
|
}
|
|
</style>
|
|
|
|
@using (Html.KretaForm("TantargyModForm"))
|
|
{
|
|
@Html.KretaValidationSummary()
|
|
|
|
@Html.HiddenFor(x => x.ID)
|
|
@Html.HiddenFor(x => x.TantargyakIDArray)
|
|
|
|
<div id="TobbesTantargyModPopUpContainer">
|
|
<div id="TobbesTantargyModKivalasztottTantargyNevekCim">
|
|
@TantargyResource.KivalasztottTantargyak
|
|
</div>
|
|
<div id="TobbesTantargyModKivalasztottTantargyNevek">
|
|
@Model.TantargyakNevArray
|
|
</div>
|
|
|
|
<div id="TantargyTabstrip">
|
|
@Html.Partial(@"EditorTemplates\TabStrip", Model.TabList)
|
|
</div>
|
|
</div>
|
|
@Html.KretaTabStrip("TantargyTabstrip").RenderOnModal()
|
|
}
|
|
|
|
<script type="text/javascript">
|
|
$(document).ready(function () {
|
|
if ($("#IsFoTargy").is(':checked')) {
|
|
$("div[name*='AltantargyAdat']").addClass('displayNone');
|
|
}
|
|
else {
|
|
$("div[name*='AltantargyAdat']").removeClass('displayNone');
|
|
}
|
|
});
|
|
|
|
$("#IsFoTargy").change(function () {
|
|
if (this.checked) {
|
|
$("div[name*='AltantargyAdat']").addClass('displayNone');
|
|
$("#FoTargyID").data("kendoComboBox").value("");
|
|
}
|
|
else {
|
|
var tantargyIdList = [];
|
|
tantargyIdList.push(@Model.TantargyakIDArray);
|
|
TantargyHelper.ValidateFotargyAltarggyaAlakithato(tantargyIdList);
|
|
$("div[name*='AltantargyAdat']").removeClass('displayNone');
|
|
$("#FoTargyID").data("kendoComboBox").value("");
|
|
}
|
|
}
|
|
);
|
|
|
|
$("#AltantargyNyomtatvanyban").change(function () {
|
|
if ($("#AltantargyNyomtatvanyban").data('kendoComboBox').select().valueOf() == 0) {
|
|
$("#IsFoTargy").data('kendoComboBox').select(1);
|
|
}
|
|
}
|
|
);
|
|
|
|
$("#IsFoTargy").change(function () {
|
|
if ($("#IsFoTargy").data('kendoComboBox').select().valueOf() == 0) {
|
|
$("#AltantargyNyomtatvanyban").data('kendoComboBox').select(1);
|
|
}
|
|
}
|
|
);
|
|
|
|
$("#TargyKategoria").change(function () {
|
|
var tantargykategoriaId = $('#TargyKategoria')[0].value;
|
|
if (tantargykategoriaId == "@((int)Kreta.Enums.TargyKategoriaTipusEnum.Szorgalom)") {
|
|
var tantargyIdList = [];
|
|
tantargyIdList.push(@Model.TantargyakIDArray);
|
|
}
|
|
});
|
|
|
|
</script> |