305 lines
16 KiB
Text
305 lines
16 KiB
Text
@using Kreta.Web.Areas.TanuloErtekeles.Controllers
|
|
@using Kreta.Web.Areas.TanuloErtekeles.Models.TanuloErtekeles
|
|
@using Kreta.Web.Helpers
|
|
|
|
@model MagatartasSzorgalomEditModel
|
|
|
|
@{
|
|
var formName = MagatartasSzorgalomController.EditPopupFormName;
|
|
}
|
|
|
|
<script type="text/javascript">
|
|
$(document).ready(function () {
|
|
TanuloErtekelesHelper.setErtekelesNyelviesitesVisibility("@Model.TipusIdEdit", ".nyelviesitesDiv");
|
|
});
|
|
|
|
$("#TipusIdEdit").change(function () {
|
|
TanuloErtekelesHelper.setErtekelesNyelviesitesVisibility($("#TipusIdEdit").val(), ".nyelviesitesDiv");
|
|
});
|
|
</script>
|
|
|
|
@using (Html.KretaForm(formName))
|
|
{
|
|
@Html.HiddenFor(x => x.IdEdit)
|
|
@Html.HiddenFor(x => x.TanuloIdEdit)
|
|
@Html.HiddenFor(x => x.DatumMinValueEdit)
|
|
@Html.HiddenFor(x => x.OsztalyCsoportIdEdit)
|
|
|
|
@Html.KretaValidationSummary()
|
|
|
|
<div class="container-fluid details">
|
|
<div class="row">
|
|
@Html.KretaLabelFor(x => x.ErtekeloNyomtatasiNevEdit, 3, 3)
|
|
</div>
|
|
<div class="row">
|
|
@Html.KretaDatePickerFor(x => x.DatumEdit).Min(Model.DatumMinValueEdit > DateTime.Today ? DateTime.Today : Model.DatumMinValueEdit).Max(DateTime.Today).RenderWithName(3, 3)
|
|
</div>
|
|
<div class="row">
|
|
@Html.KretaComboBoxFor(x => x.TipusIdEdit, Model.TipusList).RenderWithName(3, 3)
|
|
</div>
|
|
@if (Model.IsMagatartasSzorgalomOsztalyzatIdSelected)
|
|
{
|
|
if (Model.IsMagatartasVisible)
|
|
{
|
|
<div class="row">
|
|
<div class="col-xs-3">
|
|
@Html.LabelFor(x => x.MagatartasOsztalyzatIdEdit, null, new Dictionary<string, object> { { "class", "windowInputLabel" } })
|
|
</div>
|
|
<div class="col-xs-9">
|
|
@Html.KretaSelectorFor(x => x.MagatartasOsztalyzatIdEdit, Model.OsztalyzatList)
|
|
</div>
|
|
</div>
|
|
}
|
|
<div class="row">
|
|
<div class="col-xs-3">
|
|
@Html.LabelFor(x => x.SzorgalomOsztalyzatIdEdit, null, new Dictionary<string, object> { { "class", "windowInputLabel" } })
|
|
</div>
|
|
<div class="col-xs-9">
|
|
@Html.KretaSelectorFor(x => x.SzorgalomOsztalyzatIdEdit, Model.OsztalyzatList)
|
|
</div>
|
|
</div>
|
|
}
|
|
@if (Model.IsMagatartasSzorgalomSzovegSelected)
|
|
{
|
|
<div class="row">
|
|
@if (Model.IsMagatartasVisible)
|
|
{
|
|
@Html.KretaTextBoxFor(x => x.MagatartasSzovegRovidNevEdit, new Dictionary<string, object> { { "maxlength", 3 } }).RenderWithName(4, 2)
|
|
}
|
|
@Html.KretaTextBoxFor(x => x.SzorgalomSzovegRovidNevEdit, new Dictionary<string, object> { { "maxlength", 3 } }).RenderWithName(4, 2)
|
|
</div>
|
|
<div class="row">
|
|
@if (Model.IsMagatartasVisible)
|
|
{
|
|
<div class="col-xs-6" style="padding: 0">
|
|
<div class="col-xs-12">
|
|
@Html.LabelFor(x => x.MagatartasSzovegEdit, null, new Dictionary<string, object> { { "class", "windowInputLabel" }, { "style", "min-width: 0;" } })
|
|
</div>
|
|
<div class="col-xs-12">
|
|
@(Html.KretaHtmlEditorFor(m => m.MagatartasSzovegEdit, false)
|
|
.Resizable(false)
|
|
.PasteCleanup(p => p.All(false))
|
|
.Tools(tools => tools
|
|
.Clear()
|
|
.Bold()
|
|
.Italic()
|
|
.Underline()
|
|
.SubScript()
|
|
.SuperScript()))
|
|
</div>
|
|
</div>
|
|
}
|
|
<div class="col-xs-6" style="padding: 0">
|
|
<div class="col-xs-12">
|
|
@Html.LabelFor(x => x.SzorgalomSzovegEdit, null, new Dictionary<string, object> { { "class", "windowInputLabel" }, { "style", "min-width: 0;" } })
|
|
</div>
|
|
<div class="col-xs-12">
|
|
@(Html.KretaHtmlEditorFor(m => m.SzorgalomSzovegEdit, false)
|
|
.Resizable(false)
|
|
.PasteCleanup(p => p.All(false))
|
|
.Tools(tools => tools
|
|
.Clear()
|
|
.Bold()
|
|
.Italic()
|
|
.Underline()
|
|
.SubScript()
|
|
.SuperScript()))
|
|
</div>
|
|
</div>
|
|
</div>
|
|
if (Model.IsNyelviesitesActive)
|
|
{
|
|
if (Model.IsNemetNemzetiDokumentumNyelvActive)
|
|
{
|
|
<div class="row nyelviesitesDiv hideNyelviesites">
|
|
@if (Model.IsMagatartasVisible)
|
|
{
|
|
<div class="col-xs-6" style="padding: 0">
|
|
<div class="col-xs-12">
|
|
@Html.LabelFor(x => x.MagatartasSzovegNemetEdit, null, new Dictionary<string, object> { { "class", "windowInputLabel" }, { "style", "min-width: 0;" } })
|
|
</div>
|
|
<div class="col-xs-12">
|
|
@(Html.KretaHtmlEditorFor(m => m.MagatartasSzovegNemetEdit, false)
|
|
.Resizable(false)
|
|
.PasteCleanup(p => p.All(false))
|
|
.Tools(tools => tools
|
|
.Clear()
|
|
.Bold()
|
|
.Italic()
|
|
.Underline()
|
|
.SubScript()
|
|
.SuperScript()))
|
|
</div>
|
|
</div>
|
|
}
|
|
<div class="col-xs-6" style="padding: 0">
|
|
<div class="col-xs-12">
|
|
@Html.LabelFor(x => x.SzorgalomSzovegNemetEdit, null, new Dictionary<string, object> { { "class", "windowInputLabel" }, { "style", "min-width: 0;" } })
|
|
</div>
|
|
<div class="col-xs-12">
|
|
@(Html.KretaHtmlEditorFor(m => m.SzorgalomSzovegNemetEdit, false)
|
|
.Resizable(false)
|
|
.PasteCleanup(p => p.All(false))
|
|
.Tools(tools => tools
|
|
.Clear()
|
|
.Bold()
|
|
.Italic()
|
|
.Underline()
|
|
.SubScript()
|
|
.SuperScript()))
|
|
</div>
|
|
</div>
|
|
</div>
|
|
}
|
|
if (Model.IsHorvatNemzetiDokumentumNyelvActive)
|
|
{
|
|
<div class="row nyelviesitesDiv hideNyelviesites">
|
|
@if (Model.IsMagatartasVisible)
|
|
{
|
|
<div class="col-xs-6" style="padding: 0">
|
|
<div class="col-xs-12">
|
|
@Html.LabelFor(x => x.MagatartasSzovegHorvatEdit, null, new Dictionary<string, object> { { "class", "windowInputLabel" }, { "style", "min-width: 0;" } })
|
|
</div>
|
|
<div class="col-xs-12">
|
|
@(Html.KretaHtmlEditorFor(m => m.MagatartasSzovegHorvatEdit, false)
|
|
.Resizable(false)
|
|
.PasteCleanup(p => p.All(false))
|
|
.Tools(tools => tools
|
|
.Clear()
|
|
.Bold()
|
|
.Italic()
|
|
.Underline()
|
|
.SubScript()
|
|
.SuperScript()))
|
|
</div>
|
|
</div>
|
|
}
|
|
<div class="col-xs-6" style="padding: 0">
|
|
<div class="col-xs-12">
|
|
@Html.LabelFor(x => x.SzorgalomSzovegHorvatEdit, null, new Dictionary<string, object> { { "class", "windowInputLabel" }, { "style", "min-width: 0;" } })
|
|
</div>
|
|
<div class="col-xs-12">
|
|
@(Html.KretaHtmlEditorFor(m => m.SzorgalomSzovegHorvatEdit, false)
|
|
.Resizable(false)
|
|
.PasteCleanup(p => p.All(false))
|
|
.Tools(tools => tools
|
|
.Clear()
|
|
.Bold()
|
|
.Italic()
|
|
.Underline()
|
|
.SubScript()
|
|
.SuperScript()))
|
|
</div>
|
|
</div>
|
|
</div>
|
|
}
|
|
if (Model.IsRomanNemzetiDokumentumNyelvActive)
|
|
{
|
|
<div class="row nyelviesitesDiv hideNyelviesites">
|
|
@if (Model.IsMagatartasVisible)
|
|
{
|
|
<div class="col-xs-6" style="padding: 0">
|
|
<div class="col-xs-12">
|
|
@Html.LabelFor(x => x.MagatartasSzovegRomanEdit, null, new Dictionary<string, object> { { "class", "windowInputLabel" }, { "style", "min-width: 0;" } })
|
|
</div>
|
|
<div class="col-xs-12">
|
|
@(Html.KretaHtmlEditorFor(m => m.MagatartasSzovegRomanEdit, false)
|
|
.Resizable(false)
|
|
.PasteCleanup(p => p.All(false))
|
|
.Tools(tools => tools
|
|
.Clear()
|
|
.Bold()
|
|
.Italic()
|
|
.Underline()
|
|
.SubScript()
|
|
.SuperScript()))
|
|
</div>
|
|
</div>
|
|
}
|
|
<div class="col-xs-6" style="padding: 0">
|
|
<div class="col-xs-12">
|
|
@Html.LabelFor(x => x.SzorgalomSzovegRomanEdit, null, new Dictionary<string, object> { { "class", "windowInputLabel" }, { "style", "min-width: 0;" } })
|
|
</div>
|
|
<div class="col-xs-12">
|
|
@(Html.KretaHtmlEditorFor(m => m.SzorgalomSzovegRomanEdit, false)
|
|
.Resizable(false)
|
|
.PasteCleanup(p => p.All(false))
|
|
.Tools(tools => tools
|
|
.Clear()
|
|
.Bold()
|
|
.Italic()
|
|
.Underline()
|
|
.SubScript()
|
|
.SuperScript()))
|
|
</div>
|
|
</div>
|
|
</div>
|
|
}
|
|
if (Model.IsSzerbNemzetiDokumentumNyelvActive)
|
|
{
|
|
<div class="row nyelviesitesDiv hideNyelviesites">
|
|
@if (Model.IsMagatartasVisible)
|
|
{
|
|
<div class="col-xs-6" style="padding: 0">
|
|
<div class="col-xs-12">
|
|
@Html.LabelFor(x => x.MagatartasSzovegSzerbEdit, null, new Dictionary<string, object> { { "class", "windowInputLabel" }, { "style", "min-width: 0;" } })
|
|
</div>
|
|
<div class="col-xs-12">
|
|
@(Html.KretaHtmlEditorFor(m => m.MagatartasSzovegSzerbEdit, false)
|
|
.Resizable(false)
|
|
.PasteCleanup(p => p.All(false))
|
|
.Tools(tools => tools
|
|
.Clear()
|
|
.Bold()
|
|
.Italic()
|
|
.Underline()
|
|
.SubScript()
|
|
.SuperScript()))
|
|
</div>
|
|
</div>
|
|
}
|
|
<div class="col-xs-6" style="padding: 0">
|
|
<div class="col-xs-12">
|
|
@Html.LabelFor(x => x.SzorgalomSzovegSzerbEdit, null, new Dictionary<string, object> { { "class", "windowInputLabel" }, { "style", "min-width: 0;" } })
|
|
</div>
|
|
<div class="col-xs-12">
|
|
@(Html.KretaHtmlEditorFor(m => m.SzorgalomSzovegSzerbEdit, false)
|
|
.Resizable(false)
|
|
.PasteCleanup(p => p.All(false))
|
|
.Tools(tools => tools
|
|
.Clear()
|
|
.Bold()
|
|
.Italic()
|
|
.Underline()
|
|
.SubScript()
|
|
.SuperScript()))
|
|
</div>
|
|
</div>
|
|
</div>
|
|
}
|
|
}
|
|
}
|
|
@if (Model.IsMagatartasSzorgalomErtekSelected)
|
|
{
|
|
if (Model.IsMagatartasVisible)
|
|
{
|
|
<div class="row">
|
|
<div class="col-xs-6 col-sm-6 col-md-3">
|
|
@Html.LabelFor(x => x.MagatartasErtekIdEdit, null, new Dictionary<string, object> { { "class", "windowInputLabel" } })
|
|
</div>
|
|
<div class="col-xs-12 col-sm-12 col-md-9">
|
|
@Html.KretaSelectorFor(x => x.MagatartasErtekIdEdit, Model.MagatartasErtekList)
|
|
</div>
|
|
</div>
|
|
}
|
|
<div class="row">
|
|
<div class="col-xs-6 col-sm-6 col-md-3">
|
|
@Html.LabelFor(x => x.SzorgalomErtekIdEdit, null, new Dictionary<string, object> { { "class", "windowInputLabel" } })
|
|
</div>
|
|
<div class="col-xs-12 col-sm-12 col-md-9">
|
|
@Html.KretaSelectorFor(x => x.SzorgalomErtekIdEdit, Model.SzorgalomErtekList)
|
|
</div>
|
|
</div>
|
|
}
|
|
</div>
|
|
}
|