kreta/KretaWeb/Areas/Adminisztracio/Views/SystemSettings/TanuloErtekelesMondatbankItem_TobbesEdit_Popup.cshtml
2024-03-13 00:33:46 +01:00

51 lines
No EOL
1.7 KiB
Text

@using Kreta.Web.Areas.Adminisztracio.Controllers
@using Kreta.Web.Areas.Adminisztracio.Models
@using Newtonsoft.Json
@using Kreta.Enums
@model TanuloErtekelesMondatbankTobbesItemModel
@{
var formName = SystemSettingsController.TanuloErtekelesMondatbankItemEditFormName;
}
<style type="text/css">
.checkbox_padding {
padding-top: 5px;
margin-top: 0px;
}
</style>
@using (Html.KretaForm(formName))
{
@Html.KretaValidationSummary()
<div class="container-fluid details">
<div class="row">
@Html.KretaComboBoxFor(x => x.TanuloErtekelesTipusId, Model.TipusList).RenderWithName(2, 6, true)
</div>
<div class="row">
@Html.KretaComboBoxFor(x => x.EvfolyamTipusId, Model.EvfolyamTipusList).RenderWithName(2, 6, true)
</div>
<div class="row">
@Html.KretaComboBoxFor(x => x.TantargyId, Model.TantargyList).RenderWithName(2, 6, true)
</div>
<div class="row">
@Html.KretaCheckBoxFor(x => x.RovidNevEnabled).RenderWithName(3, 1, "checkbox_padding")
@Html.KretaTextBoxFor(x => x.RovidNev).RenderWithName("", 1, 2)
</div>
<div class="row">
@Html.KretaTextAreaFor(x => x.Szoveg, 5).RenderWithName(2, 10, true)
</div>
</div>
@Html.HiddenFor(x => x.SelectedIdListJson);
}
<script type="text/javascript">
$(document).ready(function () {
$('#RovidNevEnabled').bind('change', function (data) {
$('#RovidNev').prop('readOnly', !$('#RovidNevEnabled').prop('checked'));
});
$('#RovidNev').prop('readOnly', !$('#RovidNevEnabled').prop('checked'));
$('label[for="RovidNev"]').parent().addClass('hidden');
});
</script>