Add details for search
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user