@using Kreta.Web.Areas.TanuloErtekeles.Controllers
@using Kreta.Web.Areas.TanuloErtekeles.Models.TanuloErtekeles
@using Kreta.Web.Helpers
@model ErtekelesEditModel
@{
var formName = ErtekelesController.EditPopupFormName;
}
@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()
@Html.KretaLabelFor(x => x.ErtekeloNyomtatasiNevEdit, 3, 3)
@Html.KretaDatePickerFor(x => x.DatumEdit).Min(Model.DatumMinValueEdit > DateTime.Today ? DateTime.Today : Model.DatumMinValueEdit).Max(DateTime.Today).RenderWithName(3, 3)
@Html.KretaComboBoxFor(x => x.TipusIdEdit, Model.TipusList).RenderWithName(3, 3)
@Html.KretaComboBoxFor(x => x.ErtekelesModIdEdit, Model.ErtekelesModList).RenderWithName(3, 3)
@Html.KretaTextBoxFor(x => x.ErtekelesTemaEdit, new Dictionary
{ { "maxlength", 2000 } }).RenderWithName(3, 9)
@if (Model.IsNyelviesitesActive)
{
if (Model.IsNemetNemzetiDokumentumNyelvActive)
{
@Html.KretaTextBoxFor(x => x.ErtekelesTemaNemetEdit, new Dictionary { { "maxlength", 2000 } }).RenderWithName(3, 9)
}
if (Model.IsHorvatNemzetiDokumentumNyelvActive)
{
@Html.KretaTextBoxFor(x => x.ErtekelesTemaHorvatEdit, new Dictionary { { "maxlength", 2000 } }).RenderWithName(3, 9)
}
if (Model.IsRomanNemzetiDokumentumNyelvActive)
{
@Html.KretaTextBoxFor(x => x.ErtekelesTemaRomanEdit, new Dictionary { { "maxlength", 2000 } }).RenderWithName(3, 9)
}
if (Model.IsSzerbNemzetiDokumentumNyelvActive)
{
@Html.KretaTextBoxFor(x => x.ErtekelesTemaSzerbEdit, new Dictionary { { "maxlength", 2000 } }).RenderWithName(3, 9)
}
}
@if (Model.IsErtekelesOsztalyzatIdSelected)
{
@Html.LabelFor(x => x.ErtekelesOsztalyzatIdEdit, null, new Dictionary { { "class", "windowInputLabel" } })
@Html.KretaSelectorFor(x => x.ErtekelesOsztalyzatIdEdit, Model.OsztalyzatList)
}
@if (Model.IsErtekelesSzovegSelected)
{
@Html.KretaTextBoxFor(x => x.ErtekelesSzovegRovidNevEdit, new Dictionary { { "maxlength", 3 } }).RenderWithName(3, 2)
@Html.LabelFor(x => x.ErtekelesSzovegEdit, null, new Dictionary { { "class", "windowInputLabel" } })
@(Html.KretaHtmlEditorFor(m => m.ErtekelesSzovegEdit, false)
.Resizable(false)
.PasteCleanup(p => p.All(false))
.Tools(tools => tools
.Clear()
.Bold()
.Italic()
.Underline()
.SubScript()
.SuperScript()))
if (Model.IsNyelviesitesActive)
{
if (Model.IsNemetNemzetiDokumentumNyelvActive)
{
@Html.LabelFor(x => x.ErtekelesSzovegNemetEdit, null, new Dictionary { { "class", "windowInputLabel" } })
@(Html.KretaHtmlEditorFor(m => m.ErtekelesSzovegNemetEdit, false)
.Resizable(false)
.PasteCleanup(p => p.All(false))
.Tools(tools => tools
.Clear()
.Bold()
.Italic()
.Underline()
.SubScript()
.SuperScript()))
}
if (Model.IsHorvatNemzetiDokumentumNyelvActive)
{
@Html.LabelFor(x => x.ErtekelesSzovegHorvatEdit, null, new Dictionary { { "class", "windowInputLabel" } })
@(Html.KretaHtmlEditorFor(m => m.ErtekelesSzovegHorvatEdit, false)
.Resizable(false)
.PasteCleanup(p => p.All(false))
.Tools(tools => tools
.Clear()
.Bold()
.Italic()
.Underline()
.SubScript()
.SuperScript()))
}
if (Model.IsRomanNemzetiDokumentumNyelvActive)
{
@Html.LabelFor(x => x.ErtekelesSzovegRomanEdit, null, new Dictionary { { "class", "windowInputLabel" } })
@(Html.KretaHtmlEditorFor(m => m.ErtekelesSzovegRomanEdit, false)
.Resizable(false)
.PasteCleanup(p => p.All(false))
.Tools(tools => tools
.Clear()
.Bold()
.Italic()
.Underline()
.SubScript()
.SuperScript()))
}
if (Model.IsSzerbNemzetiDokumentumNyelvActive)
{
@Html.LabelFor(x => x.ErtekelesSzovegSzerbEdit, null, new Dictionary { { "class", "windowInputLabel" } })
@(Html.KretaHtmlEditorFor(m => m.ErtekelesSzovegSzerbEdit, false)
.Resizable(false)
.PasteCleanup(p => p.All(false))
.Tools(tools => tools
.Clear()
.Bold()
.Italic()
.Underline()
.SubScript()
.SuperScript()))
}
}
}
@if (Model.IsErtekelesSzazalekSelected)
{
@Html.KretaNumericFor(x => x.ErtekelesSzazalekEdit).Min(0).Max(100).RenderWithName(3, 3)
}
}