67 lines
No EOL
2.6 KiB
Text
67 lines
No EOL
2.6 KiB
Text
@using Kreta.Web.Areas.Tanulo.Models
|
|
@model TanuloFelmentesModel
|
|
|
|
<div class="container-fluid details">
|
|
@using (Html.KretaForm("FelmentesForm"))
|
|
{
|
|
@Html.KretaValidationSummary()
|
|
|
|
@Html.HiddenFor(x => x.ID)
|
|
@Html.HiddenFor(x => x.TanuloId)
|
|
|
|
if (Model.ID == 0)
|
|
{
|
|
<div class="row">
|
|
@Html.KretaMultiSelectFor(x => x.TantargyIdList, Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = Constants.ApiControllers.ComboBoxHelperApi, action = "GetTantargyList" })).AutoBind(true).RenderWithName(isCustomRequired: true)
|
|
</div>
|
|
}
|
|
else
|
|
{
|
|
<div class="row">
|
|
@Html.KretaComboBoxFor(x => x.TantargyId, Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = Constants.ApiControllers.ComboBoxHelperApi, action = "GetTantargyList" })).AutoBind(true).RenderWithName(isCustomRequired: true)
|
|
</div>
|
|
}
|
|
<div class="row">
|
|
@Html.KretaCheckBoxFor(x => x.OraMentesites).RenderWithName()
|
|
</div>
|
|
<div class="row">
|
|
@Html.KretaCheckBoxFor(x => x.ErtekelesMentesites).RenderWithName()
|
|
</div>
|
|
<div class="row">
|
|
@Html.KretaCheckBoxFor(x => x.SzovegesenErtekelheto).RenderWithName()
|
|
</div>
|
|
<div class="row">
|
|
@Html.KretaTextAreaFor(x => x.FelmentesOka).RenderWithName()
|
|
</div>
|
|
<div class="row">
|
|
@Html.KretaDatePickerFor(x => x.Kezdete).RenderWithName()
|
|
</div>
|
|
<div class="row">
|
|
@Html.KretaDatePickerFor(x => x.Vege).RenderWithName()
|
|
</div>
|
|
}
|
|
</div>
|
|
|
|
<script type="text/javascript">
|
|
$(document).ready(function () {
|
|
setTimeout(function () {
|
|
if (!$('#ErtekelesMentesites').is(':checked')) {
|
|
$('#SzovegesenErtekelheto').prop('disabled', true);
|
|
$('#SzovegesenErtekelheto').prop('checked', false);
|
|
}
|
|
else {
|
|
$('#SzovegesenErtekelheto').prop('disabled', false);
|
|
}
|
|
|
|
$('#ErtekelesMentesites').click(function () {
|
|
if ($(this).is(':checked')) {
|
|
$('#SzovegesenErtekelheto').prop('disabled', false);
|
|
}
|
|
else {
|
|
$('#SzovegesenErtekelheto').prop('disabled', true);
|
|
$('#SzovegesenErtekelheto').prop('checked', false);
|
|
}
|
|
});
|
|
}, 1);
|
|
});
|
|
</script> |