52 lines
1.8 KiB
Plaintext
52 lines
1.8 KiB
Plaintext
@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> |