@using Kreta.Web.Areas.Adminisztracio.Models @using Kreta.Enums.ManualEnums @using Kreta.Enums @using Kreta.BusinessLogic.Classes @using Kreta.Web.Security @model AdatszotarGridModel @{ var adatszotarTipus = Model.AdatszotarTipusList.First(x => x.Value == Model.AdatszotarTipusId.ToString()); }
@using (Html.KretaForm("AdatszotarForm")) { @Html.KretaValidationSummary() @Html.HiddenFor(x => x.AdatszotarID) @Html.HiddenFor(x => x.AdatszotarTipusId) @Html.HiddenFor(x => x.IsProtected) @Html.HiddenFor(x => x.Suly)
@Html.LabelFor(x => x.AdatszotarTipusNev)
@Html.HiddenFor(x => x.AdatszotarTipusNev)
@Html.KretaTextBoxFor(x => x.Megnevezes).Enable(!Model.IsProtected).RenderWithName()
@Html.KretaTextBoxFor(x => x.Megnevezes1).Enable(!Model.IsProtected).RenderWithName()
@Html.KretaTextBoxFor(x => x.Megnevezes2).Enable(!Model.IsProtected).RenderWithName()
@Html.KretaTextBoxFor(x => x.Megnevezes3).Enable(!Model.IsProtected).RenderWithName()
@Html.KretaTextBoxFor(x => x.Megnevezes4).Enable(!Model.IsProtected).RenderWithName()
if (!Model.AdatszotarID.HasValue || !Model.IsLathato || Model.AdatszotarID.Value != (int)Kreta.Enums.HetiRendTipusEnum.MindegyikHet) {
@Html.KretaCheckBoxFor(x => x.IsLathato).RenderWithName()
}
@Html.LabelFor(x => x.Sorszam)
@Html.HiddenFor(x => x.Sorszam)
if (Model.AdatszotarTipusId == (int)Kreta.Enums.GeneratedAdatszotarTipusEnum.ErtekelesMod) { @Html.KretaColorPickerFor(x => x.Color).Messages(m => m.Apply(AdminisztracioResource.Ok).Cancel(AdminisztracioResource.Megsem)).RenderWithName() @Html.KretaCheckBoxFor(x => x.IsBold).RenderWithName() } if (Model.AdatszotarTipusId == (int)Kreta.Enums.GeneratedAdatszotarTipusEnum.NapTipus) { bool IsOrarendi = Model.AdatszotarID.HasValue ? !Enum.IsDefined(typeof(NapTipusNemOrarendiEnum), Model.AdatszotarID) : true;
@Html.KretaCheckBoxFor(x => x.IsSorszamozando).RenderWithName(3, 3, tooltipResource: AdminisztracioResource.IsSorszamozandoTooltip) @Html.KretaCheckBoxFor(x => x.IsTanorai).RenderWithName(3, 3, customClass: IsOrarendi ? "" : "disabledItem", tooltipResource: AdminisztracioResource.IsTanoraiTooltip)
@Html.KretaCheckBoxFor(x => x.IsTanorankivuli).RenderWithName(3, 3, customClass: IsOrarendi ? "" : "disabledItem", tooltipResource: AdminisztracioResource.IsTanorankivuliTooltip) @Html.KretaCheckBoxFor(x => x.IsLeNemKotottMunkaido).RenderWithName(3, 3, tooltipResource: AdminisztracioResource.IsLeNemKotottMunkaidoTooltip)
} if (Model.AdatszotarTipusId == (int)GeneratedAdatszotarTipusEnum.SorolasOkaTipus) {
@Html.KretaCheckBoxFor(x => x.IsNaplobanMegjelenik).Enable(!Model.IsProtected).RenderWithName(3, 3) @Html.KretaCheckBoxFor(x => x.IsTorzslaponMegjelenik).Enable(!Model.IsProtected).RenderWithName(3, 3)
@Html.KretaCheckBoxFor(x => x.IsBizonyitvanybanMegjelenik).Enable(!Model.IsProtected).RenderWithName(3, 3)
foreach (var zaradekSzoveg in Model.ZaradekSzovegList) {
@{ var zaradekSzovegLabel = OsztalyCsoportResource.ZaradekSzovege + (zaradekSzoveg.NyelvId == (int)AnyanyelvEnum.magyar ? " *" : " (" + zaradekSzoveg.NyelvId.GetDisplayName(ClaimData.SelectedTanevID.Value) + ")"); var zaradekSzovegTextAreaName = "ZaradekSzovegTextArea_" + zaradekSzoveg.NyelvId; }
@Html.KretaTextArea(zaradekSzovegTextAreaName, new List { zaradekSzoveg.Szoveg }, rows: 6, htmlAttributes: new Dictionary { { "class", "k-textbox" }, { "data-nyelv-id", zaradekSzoveg.NyelvId.ToString() } })
} } }