@using Kreta.Resources @using Kreta.Web.Areas.Feljegyzes.Controllers @using Kreta.Web.Areas.Feljegyzes.Models @using Kreta.Web.Helpers.Grid @model ElektronikusUzenetSearchModel @{ string gridName = ElektronikusUzenetekController.GridNameNaploNezet; string formName = ElektronikusUzenetekController.NewFormName; } @using (Html.KretaForm("searchForm", new Dictionary { { "style", "display:none;" } })) { @Html.HiddenFor(m => m.CsoportIdSearch) } @{ var clientTemplateUrl = Url.Action("NaploNezetReszletekGrid", Model.ControllerName, new { area = "Feljegyzes" }); var functionCommandList = new List { new FunctionCommand { Name = CommonResource.Mentes, ClientAction = "NaploNezetHelper.saveElektronikusUzenet" }, new FunctionCommand { Name = CommonResource.Elolrol, ClientAction = "ElektronikusUzenetekHelper.openStartWindow", Classes = "kendo-gridFunctionKommandRed" }, new FunctionCommand { Classes = "infoTextNaploNezet clearFunctionCommand" } }; var grid = Html.KretaGrid ( gridName, new GridApiUrl(Model.ApiControllerName, "GetElektronikusUzenetekNaploNezetGrid"), dataBoundAdditionalFunction: "NaploNezetHelper.dataBoundAdditionalFunction();", clientTemplate: "naploNezetDetailGrid-template", clientTemplateUrl: clientTemplateUrl, clientTemplateWholeDataRow: true, allowFilterable: false, dataParameterFunction: "searchForm", allowPaging: false, allowScrolling:false, pageSizes: null, sort: sort => sort.Add(s => s.TanuloNev).Ascending() ) .SelectBoxColumn(Html, 0, true) .Columns(columns => { columns.Bound(m => m.TanuloNev).HeaderHtmlAttributes(new { @class = "nevWidth" }).ClientTemplate(@" #: TanuloNev #"); columns.Bound(m => m.Szeptember).Encoded(false).HeaderHtmlAttributes(new { @class = "honap" }).HtmlAttributes(new { @class = "honap" }).Sortable(false); columns.Bound(m => m.Oktober).Encoded(false).HeaderHtmlAttributes(new { @class = "honap" }).HtmlAttributes(new { @class = "honap" }).Sortable(false); columns.Bound(m => m.November).Encoded(false).HeaderHtmlAttributes(new { @class = "honap" }).HtmlAttributes(new { @class = "honap" }).Sortable(false); columns.Bound(m => m.December).Encoded(false).HeaderHtmlAttributes(new { @class = "honap" }).HtmlAttributes(new { @class = "honap" }).Sortable(false); columns.Bound(m => m.JanuarI).Encoded(false).HeaderHtmlAttributes(new { @class = "honap" }).HtmlAttributes(new { @class = "honap" }).Sortable(false); columns.Bound(m => m.JanuarII).Encoded(false).HeaderHtmlAttributes(new { @class = "honap" }).HtmlAttributes(new { @class = "honap" }).Sortable(false); columns.Bound(m => m.Februar).Encoded(false).HeaderHtmlAttributes(new { @class = "honap" }).HtmlAttributes(new { @class = "honap" }).Sortable(false); columns.Bound(m => m.Marcius).Encoded(false).HeaderHtmlAttributes(new { @class = "honap" }).HtmlAttributes(new { @class = "honap" }).Sortable(false); columns.Bound(m => m.Aprilis).Encoded(false).HeaderHtmlAttributes(new { @class = "honap" }).HtmlAttributes(new { @class = "honap" }).Sortable(false); columns.Bound(m => m.Majus).Encoded(false).HeaderHtmlAttributes(new { @class = "honap" }).HtmlAttributes(new { @class = "honap" }).Sortable(false); columns.Bound(m => m.Junius).Encoded(false).HeaderHtmlAttributes(new { @class = "honap" }).HtmlAttributes(new { @class = "honap" }).Sortable(false); columns.Bound(m => m.Julius).Encoded(false).HeaderHtmlAttributes(new { @class = "honap" }).HtmlAttributes(new { @class = "honap" }).Sortable(false); columns.Bound(m => m.Augusztus).Encoded(false).HeaderHtmlAttributes(new { @class = "honap" }).HtmlAttributes(new { @class = "honap" }).Sortable(false); }) .FunctionCommand(Html, functionCommandList); } @Html.KretaGridTemplate("naploNezetDetailGrid-template") @Html.KretaTooltipTemplate("kendoTooltip-feljegyzesTemplate", @"
Dátum: #:target.data('datum')#
Típus: #:target.data('tipus')#
Tanár: #:target.data('feljegyzoneve')#
Cím: #:target.data('targy')#
Tartalom: #=target.data('tartalom')#
") @Html.KretaTooltipTemplate("kendoTooltip-naploNezetTanuloNevTemplate", @"
Osztály: #:target.data('osztaly')#
Anyja neve: #:target.data('anyjaneve')#
Születési idő: #:target.data('szuletesiido')#
")
@using (Html.KretaForm(formName)) { @Html.KretaValidationSummary()
@Html.KretaCheckBoxFor(x => x.IsFaliujsagMegjelenes).RenderWithName(3, 2) @Html.KretaCheckBoxFor(x => x.IsMindenkinek).RenderWithName(3, 3)
@* NOTE: Mindig kell, hogy értéket kapjon a Model.MinimumErvenyessegKezdete és a Model.MaximumErvenyessegKezdete, ha nem akkor ott hibás a működés! *@ @Html.KretaDatePickerFor(x => x.EsemenyDatuma).Min(Model.MinimumErvenyessegKezdete.Value).Max(Model.MaximumErvenyessegKezdete.Value).RenderWithName(3, 2)
@* NOTE: Mindig kell, hogy értéket kapjon a Model.MinimumErvenyessegVege és a Model.MaximumErvenyessegVege, ha nem akkor ott hibás a működés! *@ @Html.KretaDatePickerFor(x => x.Vege).Min(Model.MinimumErvenyessegVege.Value).Max(Model.MaximumErvenyessegVege.Value).RenderWithName(3, 2)
@Html.KretaTextBoxFor(x => x.Targy).RenderWithName(3)
@Html.KretaTextBoxFor(x => x.Megjegyzes).RenderWithName(3, 9)
@Html.KretaInputLabelFor(x => x.Tartalom, htmlAttributes: new Dictionary { { "class", "windowInputLabel" } })
@(Html.KretaHtmlEditorFor(x => x.Tartalom, encode: false) .Tools(t => t.Clear() .Bold() .Italic() .Underline() .SubScript() .SuperScript() .InsertOrderedList() .InsertUnorderedList() .JustifyLeft() .JustifyCenter() .JustifyRight() .JustifyFull() .FontColor() ) .PasteCleanup(p => p.All(true)) )
}
@(grid)