@using System.Data @using Orchard.Utility.Extensions @model Orchard.DynamicForms.ViewModels.SubmissionsIndexViewModel @{ Script.Require("ShapesBase"); Layout.Title = T("Submissions for {0}", Model.FormName); } @{ var dataColumns = new List(); var dataColumnCount = Model.Submissions.Columns.Count > 11 ? 11 : Model.Submissions.Columns.Count; for (var i = 0; i < dataColumnCount; i++) { dataColumns.Add(Model.Submissions.Columns[i]); } }
@Html.ActionLink(T("Export").Text, "Export", "SubmissionAdmin", new { id = Model.FormName, area = "Orchard.DynamicForms" }, new { @class = "button primaryAction" })
@using (Html.BeginFormAntiForgeryPost()) {
@foreach (var dataColumn in dataColumns) { } @foreach (DataRow dataRow in Model.Submissions.Rows) { var id = dataRow["Id"]; @foreach (var dataColumn in dataColumns) { } }
@dataColumn.ToString().CamelFriendly()
@dataRow[dataColumn]
@Display(Model.Pager) }