@using Kreta.Web.Areas.OsztalyCsoport.Models @using Kreta.Web.Helpers @using Kreta.Resources @using Kreta.Web.Security @using Kreta.BusinessLogic.Security @model CsoportModModel @using (Html.KretaForm("CsoportModForm")) { @Html.KretaValidationSummary() @Html.HiddenFor(x=>x.ID) @Html.HiddenFor(x => x.CsoportIDArrayString)
@IntezmenyResource.KivalasztottCsoportok
@if (string.IsNullOrWhiteSpace(Model.CsoportIDArrayString)) { @Model.CsoportNeve } else { @Model.CsoportNevArray }
@if (!Model.IsFromSzervezet) {
@Html.KretaComboBoxFor(x => x.CsoportTipus, Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = "ComboBoxHelperApi", action = "GetCsoportTipusList", isKellDualisKepzesiCsoport = false })).AutoBind(true).RenderWithName(tooltipResource: OsztalyCsoportResource.CsoportAlapadatokCsoportTipus)
@Html.KretaComboBoxFor(x => x.CsoportSzervezetId, Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = Constants.ApiControllers.ComboBoxHelperApi, action = Constants.ComboBoxHelperApiActions.GetDualisKepzohelyek }), "Text", "Value", useGroup: true, isSingleElementSet: Model.IsFromSzervezet).AutoBind(true).RenderWithName()
} @if (!Model.IsFromSzervezet) {
@Html.KretaComboBoxFor(x => x.OsztalyBontas, Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = "ComboBoxHelperEnumApi", action = "GetIgenNemEnumList" })).RenderWithName()
@Html.KretaComboBoxFor(x => x.OsztalyBontasId, Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = "ComboBoxHelperApi", action = "GetOsztalyListForCascadeCB" }), "Text", "Value", onChangeFunction: "CsoportBevitelHelper.OsztalyComboOnChange(true)").RenderWithName()
@Html.KretaComboBoxFor(x => x.EvfolyamTipusa, Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = "ComboBoxHelperApi", action = "GetEvfolyamList" })).RenderWithName()
@Html.KretaComboBoxFor(x => x.CsoportVezeto, Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = "ComboBoxHelperApi", action = "GetCsopvezList" }), "Text", "Value", isSingleElementSet: false).RenderWithName()
} @if (Model.IsFromSzervezet) {
@Html.KretaComboBoxFor(x => x.CsoportSzervezetId, Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = Constants.ApiControllers.ComboBoxHelperApi, action = Constants.ComboBoxHelperApiActions.GetDualisKepzohelyek }), "Text", "Value", useGroup: true, isSingleElementSet: Model.IsFromSzervezet).AutoBind(true).RenderWithName()
@Html.KretaCascadeComboBoxFor(x => x.CsoportVezeto, Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new {controller = Constants.ApiControllers.ComboBoxHelperApi, action = "GetTanar", isFromSzervezet = true }), "CsoportSzervezetId", isSingleElementSet: false).RenderWithName()
} @if (!Model.IsFromSzervezet) {
@Html.KretaComboBoxFor(x => x.Terem, Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = "ComboBoxHelperApi", action = "GetTeremList" })).RenderWithName()
@Html.KretaComboBoxFor(x => x.FeladatEllatasiHelyId, Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = "ComboBoxHelperApi", action = "GetFeladatellatasiHelyek" })).RenderWithName()
@Html.KretaComboBoxFor(x => x.Vegzos, Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = "ComboBoxHelperEnumApi", action = "GetIgenNemEnumList" })).RenderWithName()
@Html.KretaComboBoxFor(x => x.Keresztfeleves, Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = "ComboBoxHelperEnumApi", action = "GetIgenNemEnumList" })).RenderWithName()
@Html.KretaComboBoxFor(x => x.IsGyogypedagogiaiLogopediai, Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = "ComboBoxHelperEnumApi", action = "GetIgenNemEnumList" })).RenderWithName()
@Html.KretaComboBoxFor(x => x.TechnikaiCsoport, Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = "ComboBoxHelperEnumApi", action = "GetIgenNemEnumList" })).RenderWithName()
@Html.KretaDatePickerFor(x => x.CsoportNaploMegnyitasa).RenderWithName()
@Html.KretaDatePickerFor(x => x.CsoportNaploLezarasa).RenderWithName()
@Html.KretaNumericFor(x => x.TervezettLetszam).Min(0).Max(999).RenderWithName()
}
} @if (!Model.IsFromSzervezet) { }