This commit is contained in:
2024-03-13 00:33:46 +01:00
commit e124a47765
19374 changed files with 9806149 additions and 0 deletions
@@ -0,0 +1,52 @@
@using Kreta.Enums
@using Kreta.Resources
@using Kreta.Web.Areas.DualisKepzes.Models
@model DualisKepzohelyModel
<div class="container-fluid details">
@Html.HiddenFor(x => x.ID)
@Html.HiddenFor(x => x.IsEditable)
@Html.HiddenFor(x => x.ParentSzervezetId)
<div class="row">
@if (Model.IsEditable)
{
@Html.KretaTextBoxFor(x => x.KepzohelyNeve, new Dictionary<string, object> { { "class", "kepzohelyneve" } }).RenderWithName(3, 3)
if (Model.HelyszinTipusId == (int)DualisHelyszinTipusEnum.telephely)
{
@Html.KretaLabelFor(x => x.KepzohelyAdoszama, 3, 3)
@Html.HiddenFor(x => x.KepzohelyAdoszama)
}
else
{
@Html.KretaTextBoxFor(x => x.KepzohelyAdoszama, new Dictionary<string, object> { { "class", "kepzohelyadoszama" } }).RenderWithName(3, 3)
}
}
else
{
@Html.KretaLabelFor(x => x.KepzohelyNeve, 3, 3)
@Html.KretaLabelFor(x => x.KepzohelyAdoszama, 3, 3)
}
</div>
<div class="row">
@if (Model.IsEditable)
{
@Html.KretaTextBoxFor(x => x.KepzohelyCime).RenderWithName(3, 3)
if (Model.ParentSzervezetId.HasValue)
{
@Html.KretaComboBoxFor(x => x.HelyszinTipusId, Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = Constants.ApiControllers.ComboBoxHelperApi, action = Constants.ComboBoxHelperApiActions.GetHelyszinTipusList, parentId = Model.ParentSzervezetId })).AutoBind(true).RenderWithName(3, 3)
}
else
{
@Html.HiddenFor(x => x.HelyszinTipusId)
}
}
else
{
@Html.KretaLabelFor(x => x.KepzohelyCime, 3,3)
@Html.KretaLabelFor(x => x.HelyszinTipusName, 3, 3)
}
</div>
</div>