@using Kreta.Web.Helpers
@using Kreta.Web.Areas.Orarend.Models
@model NemKotottMunkaidoModel
@using (Html.KretaForm("NemKotottMunkaidoForm"))
{
@Html.HiddenFor(x => x.Id)
@Html.HiddenFor(x => x.GroupId)
@Html.HiddenFor(x => x.TulajId)
@Html.HiddenFor(x => x.ModositasiIdoszakTipus)
@Html.HiddenFor(x => x.JSHelperNev)
@Html.HiddenFor(x => x.isMegtartott)
if (Model.Id.HasValue && Model.Id.Value > 0)
{
@Html.HiddenFor(x => x.HetirendId)
}
@Html.KretaValidationSummary()
@Html.KretaComboBoxFor(x => x.TanarId, Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = "ComboBoxHelperApi", action = "GetTanar" })).Enable(!Model.Id.HasValue || Model.Id.Value == 0 ? true : false).AutoBind(true).RenderWithName(2, 4)
@Html.KretaDatePickerFor(x => x.Datum, new Dictionary() { { "readonly", "readonly" } }).RenderWithName(2, 2)
@Html.KretaTimePickerFor(x => x.Kezdet, Model.isReadonly ? new Dictionary() { { "readonly", "readonly" } } : null).RenderWithName(2, 2)
@Html.KretaTimePickerFor(x => x.Veg, Model.isReadonly ? new Dictionary() { { "readonly", "readonly" } } : null).RenderWithName(2, 2)
@if (!Model.Id.HasValue || Model.Id.Value == 0)
{
@Html.KretaComboBoxFor(x => x.HetirendId, Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = "AdminTanariOrarendApi", action = "GetHetirendList" }), "Text", "Value", htmlAttributes: Model.isReadonly ? new Dictionary() { { "readonly", "readonly" } } : null).AutoBind(true).RenderWithName(2, 10)
}
@Html.KretaComboBoxFor(x => x.TorvenyKategoria, Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = "ComboBoxHelperApi", action = "GetTorvenyKategoriaList" }), "Text", "Value", htmlAttributes: Model.isReadonly ? new Dictionary() { { "readonly", "readonly" } } : null).AutoBind(true).RenderWithName(2, 10)
@Html.KretaTextAreaFor(m => m.Megjegyzes, 6, Model.isReadonly ? new Dictionary() { { "readonly", "readonly" } } : null).RenderWithName(2, 10)
}
@if (!Model.Id.HasValue || Model.Id.Value == 0)
{
}
else
{
}