diff --git a/WebCms/Controllers/QueueController.cs b/WebCms/Controllers/QueueController.cs index c5488e5..36a78ea 100644 --- a/WebCms/Controllers/QueueController.cs +++ b/WebCms/Controllers/QueueController.cs @@ -44,14 +44,14 @@ namespace LeafWeb.WebCms.Controllers [HttpPost] - public ActionResult Search(LeafDataQuery q) + public ActionResult Search(LeafDataQuery query) { if (!ModelState.IsValid) { return CurrentUmbracoPage(); } - return RedirectToCurrentUmbracoPage(q.GetNameValueCollection()); + return RedirectToCurrentUmbracoPage(query.GetNameValueCollection()); } private TimeInProgressEstimater TimeInProgressEstimater() @@ -127,14 +127,14 @@ namespace LeafWeb.WebCms.Controllers return GetOutputZip(id, LeafOutputFileType.CleanedInput); } - public ActionResult DownloadResultsInputZip(LeafDataQuery q) + public ActionResult DownloadResultsInputZip(LeafDataQuery query) { - return GetResults(q, LeafInput.GetInputFilesZip, $"LeafWeb_{DateTime.Now:yyyy-dd-MM--HH-mm-ss}_Input.zip"); + return GetResults(query, LeafInput.GetInputFilesZip, $"LeafWeb_{DateTime.Now:yyyy-dd-MM--HH-mm-ss}_Input.zip"); } - public ActionResult DownloadResultsOutputZip(LeafDataQuery q) + public ActionResult DownloadResultsOutputZip(LeafDataQuery query) { - return GetResults(q, LeafInput.GetOutputFilesZip_ToUser, $"LeafWeb_{DateTime.Now:yyyy-dd-MM--HH-mm-ss}_Output.zip"); + return GetResults(query, LeafInput.GetOutputFilesZip_ToUser, $"LeafWeb_{DateTime.Now:yyyy-dd-MM--HH-mm-ss}_Output.zip"); } private ActionResult GetOutputZip(int id, LeafOutputFileType type) diff --git a/WebCms/Views/Queue/Index.cshtml b/WebCms/Views/Queue/Index.cshtml index d2ad47b..55fbf8c 100644 --- a/WebCms/Views/Queue/Index.cshtml +++ b/WebCms/Views/Queue/Index.cshtml @@ -4,99 +4,24 @@ @model QueueViewModel @{ - Html.RequiresJs("~/scripts/jquery.validate.min.js", 2); - Html.RequiresJs("~/scripts/jquery.validate.unobtrusive.min.js", 2); - Html.RequiresJs("~/scripts/jquery.validate.custom.js", 2); - Html.RequiresJs("~/scripts/jquery.validate.unobtrusive.bootstrap.js", 2); Html.RequiresJs("~/scripts/Queue.js"); var grid = new WebGrid(Model.Items, rowsPerPage: 45); } -@using (Html.BeginUmbracoForm("Search", "Queue", null, new { @action = "/leaf-data/manage-queue/" })) -{ -