mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-04-05 21:01:35 +08:00

# Conflicts: # src/Orchard.Azure.Tests/Orchard.Azure.Tests.csproj # src/Orchard.Azure/Orchard.Azure.Web/Orchard.Azure.Web.csproj # src/Orchard.Core.Tests/Orchard.Core.Tests.csproj # src/Orchard.Profile/Orchard.Profile.csproj # src/Orchard.Tests.Modules/Orchard.Tests.Modules.csproj # src/Orchard.Tests/Orchard.Framework.Tests.csproj # src/Orchard.Web/Core/Navigation/Migrations.cs # src/Orchard.Web/Modules/Orchard.MediaLibrary/Controllers/FolderController.cs # src/Orchard.Web/Modules/Orchard.MediaLibrary/Services/XmlRpcHandler.cs # src/Orchard.Web/Modules/Orchard.Taxonomies/Orchard.Taxonomies.csproj # src/Orchard.Web/Orchard.Web.csproj # src/Orchard.Web/Web.config # src/Orchard.Web/packages.config # src/Orchard/Mvc/MvcModule.cs # src/Orchard/Orchard.Framework.csproj
58 lines
2.4 KiB
Plaintext
58 lines
2.4 KiB
Plaintext
@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<DataColumn>();
|
|
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]);
|
|
}
|
|
}
|
|
@using (Html.BeginFormAntiForgeryPost()) {
|
|
<fieldset class="bulk-actions">
|
|
<label for="publishActions">@T("Actions:")</label>
|
|
<select id="publishActions" name="Options.BulkAction">
|
|
@Html.SelectOption("", false, T("Choose action...").ToString())
|
|
@Html.SelectOption("Delete", false, T("Delete").ToString())
|
|
</select>
|
|
<button type="submit" name="submit.BulkEdit" value="yes">@T("Apply")</button>
|
|
</fieldset>
|
|
<table class="items dynamic-forms-submissions">
|
|
<thead>
|
|
<tr>
|
|
<th><input type="checkbox" class="check-all" /></th>
|
|
@foreach (var dataColumn in dataColumns) {
|
|
<th>@dataColumn.ToString().CamelFriendly()</th>
|
|
}
|
|
<th></th>
|
|
</tr>
|
|
</thead>
|
|
<tbody class="submissions">
|
|
@foreach (DataRow dataRow in Model.Submissions.Rows) {
|
|
var id = dataRow["Id"];
|
|
<tr>
|
|
<td><input type="checkbox" value="@id" name="submissionIds" /></td>
|
|
@foreach (var dataColumn in dataColumns) {
|
|
<td>@dataRow[dataColumn]</td>
|
|
}
|
|
<td>
|
|
<ul class="action-links">
|
|
<li class="action-link">
|
|
@Html.ActionLink(T("Details").Text, "Details", "SubmissionAdmin", new { id = id, area = "Orchard.DynamicForms" }, null)
|
|
</li>
|
|
<li class="action-link">
|
|
@Html.ActionLink(T("Delete").Text, "Delete", "SubmissionAdmin", new { id = id, area = "Orchard.DynamicForms" }, new { itemprop = "RemoveUrl UnsafeUrl" })
|
|
</li>
|
|
</ul>
|
|
</td>
|
|
</tr>
|
|
}
|
|
</tbody>
|
|
</table>
|
|
@Display(Model.Pager)
|
|
} |