@using LeafWeb.Core.Entities @using LeafWeb.WebCms.Controllers @using LeafWeb.WebCms.Utility @model SearchViewModel @{ var grid = new WebGrid(Model.Items, rowsPerPage: 45); }
@Model.Items.Count() results
@Html.Partial("_LeafDataQuery", Model.Q, new ViewDataDictionary{ {"actionName", "Search"}, {"controllerName", "Results"}, {"htmlFormAction", "/leaf-data/search/"}})
@if (Model.Items.Any()) {
@grid.Table(columns: grid.Columns( grid.Column("Identifier", "Identifier"), grid.Column("SiteId", "Site Id"), //grid.Column("Name", "Submitted By"), grid.Column("CurrentStatus", "Status", item => Status(item.Value)), grid.Column("", format: item => Actions(item.Value), canSort: false) ), htmlAttributes: new { @class = "table table-sm table-striped table-bordered table-hover" } )
@grid.PagerList()
@*
Download Results @DownloadResults()
*@
} else {

No results. Click here to submit Leaf Data.

} @helper Actions(LeafInput leafInput) { @Html.Partial("_LeafInputActions", leafInput) } @helper Status(LeafInput leafInput) { @Html.Partial("DisplayTemplates/_LeafInputStatus", leafInput) } @helper DownloadResults() {
Input Output
}