@using WebfrontCore.ViewModels @model WebfrontCore.ViewModels.TableInfo @{ Layout = null; }

@foreach (var column in Model.Columns) { } @{ var start = 0; } @if (!Model.Rows.Any()) { } @foreach (var row in Model.Rows) { @for (var i = 0; i < Model.Columns.Count; i++) { var data = row.Datum[i]; } start++; }
@column.Title
@ViewBag.Localization["WEBFRONT_DATATABLE_NO_DATA"]
@ViewBag.Localization["WEBFRONT_DATATABLE_NO_DATA"]
@if (data.Template is null) { if (data.Type == ColumnType.Text) { @data.Value } if (data.Type == ColumnType.Link) { @data.Value } if (data.Type == ColumnType.Icon) { } if (data.Type == ColumnType.Button) {
@data.Value
} } else { @data.Template }
@foreach (var column in Model.Columns) {
@column.Title
}
@for (var i = 0; i < Model.Columns.Count; i++) { var data = row.Datum[i];
@if (data.Type == ColumnType.Text) { @data.Value } @if (data.Type == ColumnType.Link) { @data.Value } @if (data.Type == ColumnType.Icon) { }
}
@if (Model.InitialRowCount > 0 && Model.Rows.Count > 0) { }