init
This commit is contained in:
commit
e124a47765
19374 changed files with 9806149 additions and 0 deletions
203
KretaWeb/Areas/TanuloErtekeles/Views/Ertekeles/Edit_Popup.cshtml
Normal file
203
KretaWeb/Areas/TanuloErtekeles/Views/Ertekeles/Edit_Popup.cshtml
Normal file
|
@ -0,0 +1,203 @@
|
|||
@using Kreta.Web.Areas.TanuloErtekeles.Controllers
|
||||
@using Kreta.Web.Areas.TanuloErtekeles.Models.TanuloErtekeles
|
||||
@using Kreta.Web.Helpers
|
||||
|
||||
@model ErtekelesEditModel
|
||||
|
||||
@{
|
||||
var formName = ErtekelesController.EditPopupFormName;
|
||||
}
|
||||
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
ErtekelesHelper.setErtekelesTemaEditLabelText();
|
||||
TanuloErtekelesHelper.setErtekelesNyelviesitesVisibility("@Model.TipusIdEdit", ".nyelviesitesDiv");
|
||||
});
|
||||
|
||||
$("#TipusIdEdit").change(function () {
|
||||
ErtekelesHelper.setPopupErtekelesModIdVisibility(false);
|
||||
ErtekelesHelper.setErtekelesTemaEditLabelText();
|
||||
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.HiddenFor(x => x.TantargyIdEdit)
|
||||
|
||||
@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">
|
||||
<div @(Model.IsFromSzervezet ? "class=disabledItem" : string.Empty)>
|
||||
@Html.KretaComboBoxFor(x => x.TipusIdEdit, Model.TipusList).RenderWithName(3, 3)
|
||||
</div>
|
||||
<div id="divErtekelesModIdEdit">
|
||||
@Html.KretaComboBoxFor(x => x.ErtekelesModIdEdit, Model.ErtekelesModList).RenderWithName(3, 3)
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
@Html.KretaTextBoxFor(x => x.ErtekelesTemaEdit, new Dictionary<string, object> { { "maxlength", 2000 } }).RenderWithName(3, 9)
|
||||
@if (Model.IsNyelviesitesActive)
|
||||
{
|
||||
if (Model.IsNemetNemzetiDokumentumNyelvActive)
|
||||
{
|
||||
<div class="nyelviesitesDiv hideNyelviesites">
|
||||
@Html.KretaTextBoxFor(x => x.ErtekelesTemaNemetEdit, new Dictionary<string, object> { { "maxlength", 2000 } }).RenderWithName(3, 9)
|
||||
</div>
|
||||
}
|
||||
if (Model.IsHorvatNemzetiDokumentumNyelvActive)
|
||||
{
|
||||
<div class="nyelviesitesDiv hideNyelviesites">
|
||||
@Html.KretaTextBoxFor(x => x.ErtekelesTemaHorvatEdit, new Dictionary<string, object> { { "maxlength", 2000 } }).RenderWithName(3, 9)
|
||||
</div>
|
||||
}
|
||||
if (Model.IsRomanNemzetiDokumentumNyelvActive)
|
||||
{
|
||||
<div class="nyelviesitesDiv hideNyelviesites">
|
||||
@Html.KretaTextBoxFor(x => x.ErtekelesTemaRomanEdit, new Dictionary<string, object> { { "maxlength", 2000 } }).RenderWithName(3, 9)
|
||||
</div>
|
||||
}
|
||||
if (Model.IsSzerbNemzetiDokumentumNyelvActive)
|
||||
{
|
||||
<div class="nyelviesitesDiv hideNyelviesites">
|
||||
@Html.KretaTextBoxFor(x => x.ErtekelesTemaSzerbEdit, new Dictionary<string, object> { { "maxlength", 2000 } }).RenderWithName(3, 9)
|
||||
</div>
|
||||
}
|
||||
}
|
||||
</div>
|
||||
@if (Model.IsErtekelesOsztalyzatIdSelected)
|
||||
{
|
||||
<div class="row">
|
||||
<div class="col-xs-3">
|
||||
@Html.LabelFor(x => x.ErtekelesOsztalyzatIdEdit, null, new Dictionary<string, object> { { "class", "windowInputLabel" } })
|
||||
</div>
|
||||
<div class="col-xs-9">
|
||||
@Html.KretaSelectorFor(x => x.ErtekelesOsztalyzatIdEdit, Model.OsztalyzatList)
|
||||
</div>
|
||||
</div>
|
||||
}
|
||||
@if (Model.IsErtekelesSzovegSelected)
|
||||
{
|
||||
<div class="row">
|
||||
@Html.KretaTextBoxFor(x => x.ErtekelesSzovegRovidNevEdit, new Dictionary<string, object> { { "maxlength", 3 } }).RenderWithName(3, 2)
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-xs-3">
|
||||
@Html.LabelFor(x => x.ErtekelesSzovegEdit, null, new Dictionary<string, object> { { "class", "windowInputLabel" } })
|
||||
</div>
|
||||
<div class="col-xs-9">
|
||||
@(Html.KretaHtmlEditorFor(m => m.ErtekelesSzovegEdit, false)
|
||||
.Resizable(false)
|
||||
.PasteCleanup(p => p.All(false))
|
||||
.Tools(tools => tools
|
||||
.Clear()
|
||||
.Bold()
|
||||
.Italic()
|
||||
.Underline()
|
||||
.SubScript()
|
||||
.SuperScript()))
|
||||
</div>
|
||||
</div>
|
||||
if (Model.IsNyelviesitesActive)
|
||||
{
|
||||
if (Model.IsNemetNemzetiDokumentumNyelvActive)
|
||||
{
|
||||
<div class="row nyelviesitesDiv hideNyelviesites">
|
||||
<div class="col-xs-3">
|
||||
@Html.LabelFor(x => x.ErtekelesSzovegNemetEdit, null, new Dictionary<string, object> { { "class", "windowInputLabel" } })
|
||||
</div>
|
||||
<div class="col-xs-9">
|
||||
@(Html.KretaHtmlEditorFor(m => m.ErtekelesSzovegNemetEdit, false)
|
||||
.Resizable(false)
|
||||
.PasteCleanup(p => p.All(false))
|
||||
.Tools(tools => tools
|
||||
.Clear()
|
||||
.Bold()
|
||||
.Italic()
|
||||
.Underline()
|
||||
.SubScript()
|
||||
.SuperScript()))
|
||||
</div>
|
||||
</div>
|
||||
}
|
||||
if (Model.IsHorvatNemzetiDokumentumNyelvActive)
|
||||
{
|
||||
<div class="row nyelviesitesDiv hideNyelviesites">
|
||||
<div class="col-xs-3">
|
||||
@Html.LabelFor(x => x.ErtekelesSzovegHorvatEdit, null, new Dictionary<string, object> { { "class", "windowInputLabel" } })
|
||||
</div>
|
||||
<div class="col-xs-9">
|
||||
@(Html.KretaHtmlEditorFor(m => m.ErtekelesSzovegHorvatEdit, false)
|
||||
.Resizable(false)
|
||||
.PasteCleanup(p => p.All(false))
|
||||
.Tools(tools => tools
|
||||
.Clear()
|
||||
.Bold()
|
||||
.Italic()
|
||||
.Underline()
|
||||
.SubScript()
|
||||
.SuperScript()))
|
||||
</div>
|
||||
</div>
|
||||
}
|
||||
if (Model.IsRomanNemzetiDokumentumNyelvActive)
|
||||
{
|
||||
<div class="row nyelviesitesDiv hideNyelviesites">
|
||||
<div class="col-xs-3">
|
||||
@Html.LabelFor(x => x.ErtekelesSzovegRomanEdit, null, new Dictionary<string, object> { { "class", "windowInputLabel" } })
|
||||
</div>
|
||||
<div class="col-xs-9">
|
||||
@(Html.KretaHtmlEditorFor(m => m.ErtekelesSzovegRomanEdit, false)
|
||||
.Resizable(false)
|
||||
.PasteCleanup(p => p.All(false))
|
||||
.Tools(tools => tools
|
||||
.Clear()
|
||||
.Bold()
|
||||
.Italic()
|
||||
.Underline()
|
||||
.SubScript()
|
||||
.SuperScript()))
|
||||
</div>
|
||||
</div>
|
||||
}
|
||||
if (Model.IsSzerbNemzetiDokumentumNyelvActive)
|
||||
{
|
||||
<div class="row nyelviesitesDiv hideNyelviesites">
|
||||
<div class="col-xs-3">
|
||||
@Html.LabelFor(x => x.ErtekelesSzovegSzerbEdit, null, new Dictionary<string, object> { { "class", "windowInputLabel" } })
|
||||
</div>
|
||||
<div class="col-xs-9">
|
||||
@(Html.KretaHtmlEditorFor(m => m.ErtekelesSzovegSzerbEdit, false)
|
||||
.Resizable(false)
|
||||
.PasteCleanup(p => p.All(false))
|
||||
.Tools(tools => tools
|
||||
.Clear()
|
||||
.Bold()
|
||||
.Italic()
|
||||
.Underline()
|
||||
.SubScript()
|
||||
.SuperScript()))
|
||||
</div>
|
||||
</div>
|
||||
}
|
||||
}
|
||||
}
|
||||
@if (Model.IsErtekelesSzazalekSelected)
|
||||
{
|
||||
<div class="row">
|
||||
@Html.KretaNumericFor(x => x.ErtekelesSzazalekEdit).Min(0).Max(100).RenderWithName(3, 3)
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue