@using Kreta.Web.Areas.Adminisztracio.Models @using Kreta.Web.Helpers.Grid @using Kreta.BusinessLogic.Classes @model TanarokFeltolteseModel @{ var formName = "TanarokFeltolteseForm"; var gridName = "TanarImportGrid"; } @using (Html.KretaForm(formName)) { @Html.KretaValidationSummary()
@if (Model.Errors.Count > 0) {
@Html.Label("Hibák", new Dictionary { { "class", "windowInputLabel labelError" } })
@Html.KretaTextArea("tanarhibak", Model.Errors, (Model.Errors.Count < 15) ? Model.Errors.Count + 1 : 15, new Dictionary() { { "style", "color: red;" }, { "readonly", "readonly" } })
}
@( Html.KretaGrid( gridName, new GridApiUrl("TanarImport", "GetPreLoadedTeachers", Constants.RouteKey.Default), dataBoundAdditionalFunction: "KIRTanarFeltoltesHelper.dataBound();", allowFilterable: false, allowSorting: false, allowPaging: false, showSorszam: false ) .Columns(columns => { columns.Bound(c => c.ID); columns.Bound(c => c.OktatasiAzonosito).Sortable(true); columns.Bound(c => c.OktatoNeve); columns.Bound(c => c.AnyjaNeve); columns.Bound(c => c.SzuletesiHely).Sortable(true); columns.Bound(c => c.SzuletesiIdo).Format(SDAFormat.Format[SDAFormat.FormatType.ShortDateAndTime]); }) .AutoBind(true) ) }