46 lines
2.6 KiB
Text
46 lines
2.6 KiB
Text
@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()
|
|
<div class="container-fluid details">
|
|
@if (!Model.isAdminRogzitette)
|
|
{
|
|
<div class="row">
|
|
@Html.KretaDatePickerFor(x => x.Datum, new Dictionary<string, object>() { { "readonly", "readonly" } }).RenderWithName(2, 2)
|
|
@Html.KretaTimePickerFor(x => x.Kezdet, Model.isReadonly ? new Dictionary<string, object>() { { "readonly", "readonly" } } : null).RenderWithName(2, 1)
|
|
@Html.KretaTimePickerFor(x => x.Veg, Model.isReadonly ? new Dictionary<string, object>() { { "readonly", "readonly" } } : null).RenderWithName(2, 1)
|
|
</div>
|
|
<div class="row">
|
|
@Html.KretaComboBoxFor(x => x.TorvenyKategoria, Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = "TanariOrarendApi", action = "GetTorvenyKategoriaList" }), "Text", "Value", htmlAttributes: Model.isReadonly ? new Dictionary<string, object>() { { "readonly", "readonly" } } : null).AutoBind(true).RenderWithName(2, 10)
|
|
</div>
|
|
}
|
|
else
|
|
{
|
|
<div class="row">
|
|
@Html.KretaDatePickerFor(x => x.Datum, new Dictionary<string, object>() { { "readonly", "readonly" } }).RenderWithName(2, 2)
|
|
@Html.KretaTimePickerFor(x => x.Kezdet, new Dictionary<string, object>() { { "readonly", "readonly" } }).RenderWithName(2, 2)
|
|
@Html.KretaTimePickerFor(x => x.Veg, new Dictionary<string, object>() { { "readonly", "readonly" } }).RenderWithName(2, 2)
|
|
</div>
|
|
<div class="row">
|
|
@Html.KretaComboBoxFor(x => x.TorvenyKategoria, Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = "TanariOrarendApi", action = "GetTorvenyKategoriaList" }), "Text", "Value", new Dictionary<string, object>() { { "readonly", "readonly" } }).AutoBind(true).RenderWithName(2, 10)
|
|
</div>
|
|
}
|
|
<div class="row">
|
|
@Html.KretaTextAreaFor(m => m.NaplozottMegjegyzes, 6, Model.isReadonly ? new Dictionary<string, object>() { { "readonly", "readonly" } } : null).RenderWithName(2, 10)
|
|
</div>
|
|
</div>
|
|
}
|