@using Kreta.Web.Helpers;
@using Kreta.Web.Helpers.Grid;
@using Kreta.Web.Areas.Orarend.Models;
@model AdminKozpontiOrakRogzitesModel
@{
const string GridName = "AdminKozpontiOrakRogzitesGrid";
string mainWidth = Model.GetNumberOfTrueProperties() == 0 ? "25%" : Model.GetNumberOfTrueProperties() > 3 ? "12%" : "18%";
}
Tanár:
@Html.KretaComboBoxFor(x => x.DefaultTanarID, Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = Constants.ApiControllers.ComboBoxHelperApi, action = "GetTanarDropDown" }), "Text", "Value", onChangeFunction: "KozpontiOra.SetDefaultTanar(this)", showUnknownValueMessage: false).AutoBind(true).Placeholder(CommonResource.KeremValasszon).HtmlAttributes(new { @class = "defaultComboboxWidth" })
Tantárgy:
@Html.KretaComboBoxFor(x => x.DefaultTantargyID, Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = Constants.ApiControllers.ComboBoxHelperApi, action = "GetTantargyDropDown", filterNincsBeloleOra = true }), "Text", "Value", onChangeFunction: "KozpontiOra.SetDefaultTantargy(this)", showUnknownValueMessage: false).AutoBind(true).Placeholder(CommonResource.KeremValasszon).HtmlAttributes(new { @class = "defaultComboboxWidth" })
Terem:
@Html.KretaComboBoxFor(x => x.DefaultTeremID, Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = Constants.ApiControllers.ComboBoxHelperApi, action = "GetTeremListWithoutGroupDropDown" }), "Text", "Value", onChangeFunction: "KozpontiOra.SetDefaultTerem(this)", showUnknownValueMessage: false).AutoBind(true).Placeholder(CommonResource.KeremValasszon).HtmlAttributes(new { @class = "defaultComboboxWidth" })