@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.TanarId)
@Html.HiddenFor(x => x.TulajId)
@Html.HiddenFor(x => x.GroupId)
@Html.HiddenFor(x => x.ModositasiIdoszakTipus)
@Html.HiddenFor(x => x.JSHelperNev)
@Html.HiddenFor(x => x.isMegtartott)
@Html.HiddenFor(x => x.HetirendId)
@Html.HiddenFor(x => x.AdminAltalTorolt)
@Html.HiddenFor(x => x.Megjegyzes)
@Html.KretaValidationSummary()
@if (!Model.isAdminRogzitette)
{
@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, 1)
@Html.KretaTimePickerFor(x => x.Veg, Model.isReadonly ? new Dictionary() { { "readonly", "readonly" } } : null).RenderWithName(2, 1)
@Html.KretaComboBoxFor(x => x.TorvenyKategoria, Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = "TanariOrarendApi", action = "GetTorvenyKategoriaList" }), "Text", "Value", htmlAttributes: Model.isReadonly ? new Dictionary() { { "readonly", "readonly" } } : null).AutoBind(true).RenderWithName(2, 10)
}
else
{
@Html.KretaDatePickerFor(x => x.Datum, new Dictionary() { { "readonly", "readonly" } }).RenderWithName(2, 2)
@Html.KretaTimePickerFor(x => x.Kezdet, new Dictionary() { { "readonly", "readonly" } }).RenderWithName(2, 2)
@Html.KretaTimePickerFor(x => x.Veg, new Dictionary() { { "readonly", "readonly" } }).RenderWithName(2, 2)
@Html.KretaComboBoxFor(x => x.TorvenyKategoria, Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = "TanariOrarendApi", action = "GetTorvenyKategoriaList" }), "Text", "Value", new Dictionary() { { "readonly", "readonly" } }).AutoBind(true).RenderWithName(2, 10)
}
@Html.KretaTextAreaFor(m => m.NaplozottMegjegyzes, 6, Model.isReadonly ? new Dictionary() { { "readonly", "readonly" } } : null).RenderWithName(2, 10)
}