kreta/KretaWeb/Areas/Orarend/Views/TanariOrarend/TanoraIdBeallitasTanoranKivulifoglakozas.cshtml
2024-03-13 00:33:46 +01:00

49 lines
No EOL
2.8 KiB
Text

@using Kreta.Framework
@using Kreta.Web.Classes
@using Kreta.Web.Areas.Orarend.Models
@model TanoraIdBeallitasModel
@{ Layout = null; }
@using (Html.KretaForm("IdBeallitasForm"))
{
@Html.KretaValidationSummary()
<div class="container-fluid details">
@if (Model.calendarModel.isHelyettesites)
{
@Html.HiddenFor(x => x.HelyettesitettId)
<div class="row">
@Html.KretaComboBoxFor(x => x.HelyettesitesTipusId, Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = "TanariOrarendApi", action = "GetHelyettesitesTipus" }), "Text", "Value", useGroup: false).AutoBind(true).RenderWithName(customLabelDivClass: "km-list", customLabelClass: "km-required")
</div>
<div class="row">
@Html.KretaTextAreaFor(m => m.HelyettesitesOka).RenderWithName(customLabelDivClass: "km-list", customLabelClass: "km-required")
</div>
}
@if (Model.calendarModel.UseFoglakozas)
{
<h4>@StringResourcesUtil.GetString(4596)</h4>
<div class="row">
@Html.KretaComboBoxFor(x => x.FoglalkozasId, Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = "TanariOrarendApi", action = "GetTanoranKivuliFoglalkozasok" }), "Text", "Value", useGroup: true).Events(e => e.Change("TanariOrarend.changeTeremByFoglalkozas")).AutoBind(true).RenderWithName(customLabelDivClass: "km-list", customLabelClass: "km-required")
</div>
}
else {
<h4>@StringResourcesUtil.GetString(4597)</h4>
<div class="row">
@Html.KretaComboBoxFor(x => x.OsztalyCsoportId, Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = "TanariOrarendApi", action = "GetTanoranKivuliFoglalkozasokOsztalyList" }), "Text", "Value", useGroup: true).Events(e => e.Change("TanariOrarend.changeTeremByOsztaly")).AutoBind(true).RenderWithName(customLabelDivClass: "km-list", customLabelClass: "km-required")
</div>
<div class="row">
@Html.KretaComboBoxFor(x => x.TantargyId, Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = "TanariOrarendApi", action = "GetTantargyak" }), "Text", "Value", useGroup: false).AutoBind(true).RenderWithName(customLabelDivClass: "km-list", customLabelClass: "km-required")
</div>
}
<div class="row">
@Html.KretaComboBoxFor(x => x.TeremId, Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = "ComboBoxHelperApi", action = "GetTeremList" }), "Text", "Value", useGroup: false).AutoBind(true).RenderWithName(customLabelDivClass: "km-list", customLabelClass: "km-required")
</div>
</div>
}
<script type="text/javascript">
$(document).ready(function () {
$("#HelyettesitettId").val($("#searchForm #Tanar").val());
});
</script>