Files
LeafWeb/Web/Views/ResultStatus/Index.cshtml
T

23 lines
781 B
Plaintext

@model IEnumerable<LeafWeb.Web.ViewModels.ResultStatus.ResultStatusViewModel>
@{
ViewBag.Title = "Results";
var grid = new WebGrid(Model, rowsPerPage: 45);
}
<h1>Result Status</h1>
@grid.GetHtml(columns:
grid.Columns(
grid.Column("LeafInputIdentifier", "Identifier"),
grid.Column("LeafInputSiteId", "Site Id"),
grid.Column("LeafInputName", "Submitted By"),
grid.Column("CurrentStatus", "Status"),
grid.Column("Chart", "Chart", item =>
item.HasLeafChart
? Html.ActionLink("Chart", "Index", "LeafCharter", new {leafInputId = item.LeafInputId}, new {})
: Html.Raw(""))
),
htmlAttributes: new { @class = "table table-striped table-bordered table-hover table-condensed" }
)