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

100 lines
No EOL
4.5 KiB
Text

@using Kreta.Framework
@using Kreta.Web.Classes
@using Kreta.Web.Areas.Orarend.Models
@using Kreta.Web.Helpers
@model FoglalkozasModel
@using (Html.KretaForm("FoglalkozasForm"))
{
@Html.KretaValidationSummary()
@Html.HiddenFor(x => x.ID)
@Html.HiddenFor(x => x.KezdeteDatum)
@Html.HiddenFor(x => x.VegeDatum)
@Html.HiddenFor(x => x.UseFoglalkozas)
<div class="container-fluid details">
@if (Model.UseFoglalkozas)
{
<div class="row">
@Html.KretaComboBoxFor(x => x.TanoranKivuliFoglalkozas, Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = "TanariOrarendApi", action = "GetTanoranKivuliFoglalkozasok" }), "Text", "Value", useGroup: true).AutoBind(true).Events(e => { e.Change("Foglalkozasok.OnTanoranKivuliFoglalkozasChange"); e.DataBound("Foglalkozasok.OnTanoranKivuliFoglalkozasChange"); }).RenderWithName(3, 3)
</div>
}
else
{
<div class="row">
@Html.KretaComboBoxFor(x => x.OsztalyCsoportId, Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = "TanariOrarendApi", action = "GetTanoranKivuliFoglalkozasokOsztalyList" })).AutoBind(true).RenderWithName(3, 3)
@Html.KretaComboBoxFor(x => x.TantargyId, Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = "TanariOrarendApi", action = "GetTantargyak" })).AutoBind(true).RenderWithName(3, 3)
</div>
}
<div class="row">
@if (Model.UseFoglalkozas)
{
<div class="col-xs-3 col-sm-3">
<label class="windowInputLabel" for="TanoranKivuliFoglalkozas">@Kreta.Framework.StringResourcesUtil.GetString(33)</label>
</div>
<div class="col-xs-3 col-sm-3">
<label id="TanoranKivuliFoglalkozasTanarok"></label>
</div>
}
else
{
@Html.KretaEmpty()
}
@Html.KretaComboBoxFor(x => x.TeremID, Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = "ComboBoxHelperApi", action = "GetTeremList" }), "Text", "Value", useGroup: false).AutoBind(true).RenderWithName(3, 3)
</div>
<div class="row">
@Html.KretaLabelFor(x => x.KezdeteLabel, 3, 3)
@Html.KretaLabelFor(x => x.VegeLabel, 3, 3)
</div>
<div class="row">
@Html.KretaTimePickerFor(x => x.Kezdete).RenderWithName(3, 3)
@Html.KretaTimePickerFor(x => x.Vege).RenderWithName(3, 3)
</div>
<h4>@StringResourcesUtil.GetString(2491)</h4>
<div class="row">
@Html.KretaCheckBoxFor(x => x.Sorszamozando).RenderWithName(3, 3)
@Html.KretaCheckBoxFor(x => x.ParhuzamosOra).RenderWithName(3, 3)
</div>
<h4>@StringResourcesUtil.GetString(2492)</h4>
<div class="row">
@Html.KretaCheckBoxFor(x => x.Tulora).RenderWithName(2, 1)
@Html.KretaCheckBoxFor(x => x.TAMOPOra).RenderWithName(2, 1)
@Html.KretaCheckBoxFor(x => x.NemSzakrendszeruOra).RenderWithName(2, 1)
</div>
<div class="row">
@Html.KretaCheckBoxFor(x => x.KAPOra).Enable(false).RenderWithName(2, 1)
@Html.KretaCheckBoxFor(x => x.VEKOP73317).Enable(false).RenderWithName(2, 1)
@Html.KretaCheckBoxFor(x => x.KIPOra).Enable(false).RenderWithName(2, 1)
</div>
<div class="row">
@Html.KretaCheckBoxFor(x => x.IKTTanora).RenderWithName(2, 1)
@Html.KretaCheckBoxFor(x => x.NemzetisegiOra).RenderWithName(2, 1)
@Html.KretaCheckBoxFor(x => x.MindennaposTestneveles).RenderWithName(2, 1)
</div>
<div class="row">
@Html.KretaCheckBoxFor(x => x.IPRTanora).RenderWithName(2, 1)
@Html.KretaCheckBoxFor(x => x.Differencialt).RenderWithName(2, 1)
@Html.KretaCheckBoxFor(x => x.Kooperativ).RenderWithName(2, 1)
</div>
<div class="row">
@Html.KretaCheckBoxFor(x => x.Meres).RenderWithName(2, 1)
@Html.KretaCheckBoxFor(x => x.Drama).RenderWithName(2, 1)
@Html.KretaCheckBoxFor(x => x.Tiop).RenderWithName(2, 1)
</div>
<div class="row">
@Html.KretaCheckBoxFor(x => x.Bontott).RenderWithName(2, 1)
@Html.KretaCheckBoxFor(x => x.IsFelnottoktatasiSzerzodes).RenderWithName(2, 1)
</div>
</div>
}
<script type="text/javascript">
$(document).ready(function () {
$("#FoglalkozasForm #TanoranKivuliFoglalkozas").closest('div').addClass('disabledComboItem');
$("#FoglalkozasForm #OsztalyCsoportId").closest('div').addClass('disabledComboItem');
$("#FoglalkozasForm #TantargyId").closest('div').addClass('disabledComboItem');
$("#FoglalkozasForm #TeremID").closest('div').addClass('disabledComboItem');
});
</script>