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

37 lines
No EOL
1.2 KiB
Text

@using Kreta.Web.Areas.Orarend.Models;
@model OralatogatasModel
@{ Layout = null; }
@using (Html.KretaForm("OralatogatasForm"))
{
@Html.KretaValidationSummary()
@Html.HiddenFor(x => x.OraID)
@Html.HiddenFor(x => x.OralatogatasID)
@Html.HiddenFor(x => x.TanarId)
@Html.HiddenFor(x => x.OralatogatasDatuma)
@Html.HiddenFor(x => x.TanitasiOraTema)
<div class="container-fluid">
@Html.KretaHtmlEditorFor(x => x.OralatogatasSzovege, false)
</div>
<div style="position: absolute; bottom: 0; right: 0;">
@if (!Model.OralatogatasID.HasValue)
{
@Html.KretaCheckBoxFor(x => x.NemKotottMunkaidos).RenderWithName(11, 1)
}
</div>
}
<script type="text/javascript">
$(document).ready(function () {
$("#OralatogatasForm #TanarId").val($("#searchForm #TanarId").val());
$("#OralatogatasWindow_wnd_title")[0].innerText += (" - " + $("#TanitasiOraTema").val());
@if (Model.IsNemKellNemKotottSystemSettings)
{
<text>
$("#NemKotottMunkaidos").parent("div").parent("div").addClass("disabledItem");
$("#NemKotottMunkaidos").prop("checked", false);
</text>
}
});
</script>