Add details for search

This commit is contained in:
2020-07-23 21:16:26 -04:00
parent 25b5d8ebc6
commit 733ed01100
7 changed files with 45 additions and 16 deletions
+1 -1
View File
@@ -7,7 +7,7 @@ namespace LeafWeb.WebCms.Controllers
public const int Chart = 1100;
// ReSharper disable once InconsistentNaming
public const int Details_Admin = 1111;
public const int Details_Results = 0;
public const int Details_Results = 1183;
public const int PasswordResetRequest = 1164;
}
+2 -5
View File
@@ -1,9 +1,6 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web.Mvc;
using LeafWeb.Core.Entities;
using LeafWeb.Core.Utility;
using LeafWeb.WebCms.Models;
using LeafWeb.WebCms.Utility;
using Umbraco.Web.Mvc;
@@ -33,7 +30,6 @@ namespace LeafWeb.WebCms.Controllers
return View(searchViewModel);
}
[MemberAuthorize(AllowGroup = "Authenticated")]
[HttpPost]
public ActionResult Search(LeafDataQuery query)
@@ -48,6 +44,7 @@ namespace LeafWeb.WebCms.Controllers
return RedirectToCurrentUmbracoPage(query.GetNameValueCollection());
}
[MemberAuthorize(AllowGroup = "Authenticated")]
public ActionResult Details(int id)
{
var leafInput = DataService.GetLeafInput(id);
@@ -58,7 +55,7 @@ namespace LeafWeb.WebCms.Controllers
RedirectToUmbracoPage(LeafWebPageIds.ManageQueue);
}
var viewModel = new LeafInputDetails_Admin(leafInput);
var viewModel = new LeafInputDetails(leafInput);
return View(viewModel);
}